aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2018-08-01 12:06:39 +0000
committerToomas Soome <tsoome@FreeBSD.org>2018-08-01 12:06:39 +0000
commitd07ea92f55834f7343e25e81d2858846205dd23a (patch)
tree8e4942e10460ddeec97079e4e4c6dff0f7b2e40b
parenteba1bc411b9c5af9e6d5aa9f32b5ecf623d1f76a (diff)
downloadsrc-d07ea92f55834f7343e25e81d2858846205dd23a.tar.gz
src-d07ea92f55834f7343e25e81d2858846205dd23a.zip
libsa: bootp is using pointers with different sign
Just change bp_file to char and same for variable s.
Notes
Notes: svn path=/head/; revision=337038
-rw-r--r--stand/libsa/bootp.c2
-rw-r--r--stand/libsa/bootp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/stand/libsa/bootp.c b/stand/libsa/bootp.c
index e8a89b40c93f..f092db3de968 100644
--- a/stand/libsa/bootp.c
+++ b/stand/libsa/bootp.c
@@ -735,7 +735,7 @@ setenv_(u_char *cp, u_char *ep, struct dhcp_opt *opts)
bcopy(cp, buf, size); /* cannot overflow */
buf[size] = '\0';
for (endv = buf; endv; endv = vp) {
- u_char *s = NULL; /* semicolon ? */
+ char *s = NULL; /* semicolon ? */
/* skip leading whitespace */
while (*endv && strchr(" \t\n\r", *endv))
diff --git a/stand/libsa/bootp.h b/stand/libsa/bootp.h
index fd99b775f14c..8939955d861b 100644
--- a/stand/libsa/bootp.h
+++ b/stand/libsa/bootp.h
@@ -39,7 +39,7 @@ struct bootp {
struct in_addr bp_giaddr; /* gateway IP address */
unsigned char bp_chaddr[16]; /* client hardware address */
unsigned char bp_sname[64]; /* server host name */
- unsigned char bp_file[128]; /* boot file name */
+ char bp_file[128]; /* boot file name */
#ifdef SUPPORT_DHCP
#define BOOTP_VENDSIZE 312
#else