diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-04-28 21:49:50 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-04-28 21:49:50 +0000 |
commit | 3274c87676e11cfbf1f6d3d554762ecdea47fe79 (patch) | |
tree | 4824c477c358154c6bb33d0e8379ff36f0039b20 /cpukit/libnetworking/nfs | |
parent | 2005-04-28 Jennifer Averett <jennifer.averett@oarcorp.com> (diff) | |
download | rtems-3274c87676e11cfbf1f6d3d554762ecdea47fe79.tar.bz2 |
2005-04-28 Joel Sherrill <joel@OARcorp.com>
* libnetworking/kern/kern_sysctl.c, libnetworking/libc/inet_ntop.c,
libnetworking/net/if_ppp.c, libnetworking/net/pppcompress.c,
libnetworking/net/slcompress.c, libnetworking/netinet/ip_output.c,
libnetworking/netinet/udp_usrreq.c, libnetworking/nfs/bootp_subr.c,
libnetworking/rtems/rtems_select.c,
libnetworking/rtems/rtems_showifstat.c,
libnetworking/rtems/rtems_showroute.c,
libnetworking/rtems/rtems_syscall.c: Fixed type mismatch and
uninitialized variable warnings.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/nfs/bootp_subr.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c index b00fe6264b..90f9a8ac9c 100644 --- a/cpukit/libnetworking/nfs/bootp_subr.c +++ b/cpukit/libnetworking/nfs/bootp_subr.c @@ -736,7 +736,7 @@ processOptions (unsigned char *optbuf, int optbufSize) int j = 0; int len; int code, ncode; - char *p; + unsigned char *p; ncode = optbuf[0]; while (j < optbufSize) { @@ -832,10 +832,10 @@ processOptions (unsigned char *optbuf, int optbufSize) /* Host name */ if (len>=MAXHOSTNAMELEN) panic ("bootpc: hostname >=%d bytes", MAXHOSTNAMELEN); - if (sethostname (p, len) < 0) + if (sethostname ((char *)p, len) < 0) panic("Can't set host name"); printf("Hostname is %s\n", p); - dhcp_hostname = bootp_strdup_realloc(dhcp_hostname,p); + dhcp_hostname = bootp_strdup_realloc(dhcp_hostname,(char *)p); break; case 7: @@ -852,7 +852,7 @@ processOptions (unsigned char *optbuf, int optbufSize) /* Domain name */ if (p[0]) { rtems_bsdnet_domain_name = - bootp_strdup_realloc(rtems_bsdnet_domain_name,p); + bootp_strdup_realloc(rtems_bsdnet_domain_name,(char *)p); printf("Domain name is %s\n", rtems_bsdnet_domain_name); } break; @@ -888,14 +888,14 @@ processOptions (unsigned char *optbuf, int optbufSize) /* DHCP server name option */ if (p[0]) rtems_bsdnet_bootp_server_name = - bootp_strdup_realloc(rtems_bsdnet_bootp_server_name,p); + bootp_strdup_realloc(rtems_bsdnet_bootp_server_name,(char *)p); break; case 67: /* DHCP bootfile option */ if (p[0]) rtems_bsdnet_bootp_boot_file_name = - bootp_strdup_realloc(rtems_bsdnet_bootp_boot_file_name,p); + bootp_strdup_realloc(rtems_bsdnet_bootp_boot_file_name,(char *)p); break; case 129: @@ -903,7 +903,7 @@ processOptions (unsigned char *optbuf, int optbufSize) * a 'command line string' */ if (p[0]) - rtems_bsdnet_bootp_cmdline = strdup(p); + rtems_bsdnet_bootp_cmdline = strdup((char *)p); break; default: @@ -1054,7 +1054,7 @@ bootpc_init(int update_files) processOptions (&reply.vend[4], sizeof(reply.vend) - 4); } if (dhcpOptionOverload & 1) { - processOptions (reply.file, sizeof reply.file); + processOptions ((unsigned char *)reply.file, sizeof reply.file); } else { if (reply.file[0]) @@ -1062,7 +1062,7 @@ bootpc_init(int update_files) bootp_strdup_realloc(rtems_bsdnet_bootp_boot_file_name,reply.file); } if (dhcpOptionOverload & 2) { - processOptions (reply.sname, sizeof reply.sname); + processOptions ((unsigned char *)reply.sname, sizeof reply.sname); } else { if (reply.sname[0]) |