Date: Thu, 10 May 2007 09:20:14 GMT From: Tyler Spivey <tspivey@pcdesk.net> To: freebsd-bugs@FreeBSD.org Subject: bin/112163 Message-ID: <200705100920.l4A9KEJl068399@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/112163; it has been noted by GNATS. From: Tyler Spivey <tspivey@pcdesk.net> To: bug-followup@freebsd.org Cc: Subject: bin/112163 Date: Thu, 10 May 2007 01:36:03 -0700 diff -ur bootparamd-orig/bootparamd/bootparamd.c bootparamd/bootparamd/bootparamd.c --- bootparamd-orig/bootparamd/bootparamd.c Thu May 10 01:31:56 2007 +++ bootparamd/bootparamd/bootparamd.c Thu May 10 01:32:23 2007 @@ -28,7 +28,7 @@ #include <sys/types.h> #include <sys/socket.h> extern int debug, dolog; -extern unsigned long route_addr; +extern uint32_t route_addr; extern char *bootpfile; #define MAXLEN 800 @@ -48,7 +48,7 @@ bp_whoami_arg *whoami; struct svc_req *req; { - long haddr; + uint32_t haddr; static bp_whoami_res res; if (debug) fprintf(stderr,"whoami got question for %d.%d.%d.%d\n", @@ -81,7 +81,7 @@ if ( res.router_address.address_type != IP_ADDR_TYPE ) { res.router_address.address_type = IP_ADDR_TYPE; - bcopy( &route_addr, &res.router_address.bp_address_u.ip_addr, 4); + bcopy( &route_addr, &res.router_address.bp_address_u.ip_addr, sizeof(uint32_t)); } if (debug) fprintf(stderr, "Returning %s %s %d.%d.%d.%d\n", diff -ur bootparamd-orig/bootparamd/main.c bootparamd/bootparamd/main.c --- bootparamd-orig/bootparamd/main.c Thu May 10 01:31:56 2007 +++ bootparamd/bootparamd/main.c Thu May 10 01:32:23 2007 @@ -32,7 +32,7 @@ int debug = 0; int dolog = 0; -unsigned long route_addr = -1; +uint32_t route_addr = -1; struct sockaddr_in my_addr; char *bootpfile = "/etc/bootparams"; diff -ur bootparamd-orig/callbootd/callbootd.c bootparamd/callbootd/callbootd.c --- bootparamd-orig/callbootd/callbootd.c Thu May 10 01:31:56 2007 +++ bootparamd/callbootd/callbootd.c Thu May 10 01:32:23 2007 @@ -79,7 +79,7 @@ bp_getfile_res *getfile_res, stat_getfile_res; - long the_inet_addr; + uint32_t the_inet_addr; CLIENT *clnt; enum clnt_stat clnt_stat;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705100920.l4A9KEJl068399>