Author: tsoome
Date: Wed Aug 1 12:06:39 2018
New Revision: 337038
URL: https://svnweb.freebsd.org/changeset/base/337038
Log:
libsa: bootp is using pointers with different sign
Just change bp_file to char and same for variable s.
Modified:
head/stand/libsa/bootp.c
head/stand/libsa/bootp.h
Modified: head/stand/libsa/bootp.c
==============================================================================
--- head/stand/libsa/bootp.c Wed Aug 1 11:40:52 2018 (r337037)
+++ head/stand/libsa/bootp.c Wed Aug 1 12:06:39 2018 (r337038)
@@ -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))
Modified: head/stand/libsa/bootp.h
==============================================================================
--- head/stand/libsa/bootp.h Wed Aug 1 11:40:52 2018 (r337037)
+++ head/stand/libsa/bootp.h Wed Aug 1 12:06:39 2018 (r337038)
@@ -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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"