Ignore:
Timestamp:
Apr 28, 2005, 9:49:50 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
d3dd09b
Parents:
f48f64a
Message:

2005-04-28 Joel Sherrill <joel@…>

  • 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/nfs/bootp_subr.c

    rf48f64a r3274c876  
    737737  int len;
    738738  int code, ncode;
    739   char *p;
     739  unsigned char *p;
    740740
    741741  ncode = optbuf[0];
     
    833833      if (len>=MAXHOSTNAMELEN)
    834834        panic ("bootpc: hostname >=%d bytes", MAXHOSTNAMELEN);
    835       if (sethostname (p, len) < 0)
     835      if (sethostname ((char *)p, len) < 0)
    836836        panic("Can't set host name");
    837837      printf("Hostname is %s\n", p);
    838       dhcp_hostname = bootp_strdup_realloc(dhcp_hostname,p);
     838      dhcp_hostname = bootp_strdup_realloc(dhcp_hostname,(char *)p);
    839839      break;
    840840
     
    853853      if (p[0]) {
    854854        rtems_bsdnet_domain_name =
    855           bootp_strdup_realloc(rtems_bsdnet_domain_name,p);
     855          bootp_strdup_realloc(rtems_bsdnet_domain_name,(char *)p);
    856856        printf("Domain name is %s\n", rtems_bsdnet_domain_name);
    857857      }
     
    889889      if (p[0])
    890890        rtems_bsdnet_bootp_server_name =
    891           bootp_strdup_realloc(rtems_bsdnet_bootp_server_name,p);
     891          bootp_strdup_realloc(rtems_bsdnet_bootp_server_name,(char *)p);
    892892      break;
    893893
     
    896896      if (p[0])
    897897        rtems_bsdnet_bootp_boot_file_name =
    898           bootp_strdup_realloc(rtems_bsdnet_bootp_boot_file_name,p);
     898          bootp_strdup_realloc(rtems_bsdnet_bootp_boot_file_name,(char *)p);
    899899      break;
    900900
     
    904904           */
    905905          if (p[0])
    906                 rtems_bsdnet_bootp_cmdline = strdup(p);
     906                rtems_bsdnet_bootp_cmdline = strdup((char *)p);
    907907          break;
    908908
     
    10551055  }
    10561056  if (dhcpOptionOverload & 1) {
    1057     processOptions (reply.file, sizeof reply.file);
     1057    processOptions ((unsigned char *)reply.file, sizeof reply.file);
    10581058  }
    10591059  else {
     
    10631063  }
    10641064  if (dhcpOptionOverload & 2) {
    1065     processOptions (reply.sname, sizeof reply.sname);
     1065    processOptions ((unsigned char *)reply.sname, sizeof reply.sname);
    10661066  }
    10671067  else {
Note: See TracChangeset for help on using the changeset viewer.