From d07ea92f55834f7343e25e81d2858846205dd23a Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 1 Aug 2018 12:06:39 +0000 Subject: libsa: bootp is using pointers with different sign Just change bp_file to char and same for variable s. --- stand/libsa/bootp.c | 2 +- stand/libsa/bootp.h | 2 +- 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 -- cgit v1.2.3