Changeset 3274c876 in rtems


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.
Location:
cpukit
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf48f64a r3274c876  
     12005-04-28      Joel Sherrill <joel@OARcorp.com>
     2
     3        * libnetworking/kern/kern_sysctl.c, libnetworking/libc/inet_ntop.c,
     4        libnetworking/net/if_ppp.c, libnetworking/net/pppcompress.c,
     5        libnetworking/net/slcompress.c, libnetworking/netinet/ip_output.c,
     6        libnetworking/netinet/udp_usrreq.c, libnetworking/nfs/bootp_subr.c,
     7        libnetworking/rtems/rtems_select.c,
     8        libnetworking/rtems/rtems_showifstat.c,
     9        libnetworking/rtems/rtems_showroute.c,
     10        libnetworking/rtems/rtems_syscall.c: Fixed type mismatch and
     11        uninitialized variable warnings.
     12
    1132005-04-28      Joel Sherrill <joel@OARcorp.com>
    214
  • cpukit/libnetworking/kern/kern_sysctl.c

    rf48f64a r3274c876  
    10111011        int error;
    10121012
     1013        plen = 0; /* RTEMS - to avoid warnings */
     1014
    10131015        oid[0] = 0;             /* sysctl internal magic */
    10141016        oid[1] = 3;             /* name2oid */
  • cpukit/libnetworking/libc/inet_ntop.c

    rf48f64a r3274c876  
    127127                words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3));
    128128        best.base = -1;
     129        best.len  = 0;
    129130        cur.base = -1;
     131        cur.len  = 0;
    130132        for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) {
    131133                if (words[i] == 0) {
  • cpukit/libnetworking/net/if_ppp.c

    rf48f64a r3274c876  
    11701170    struct ppp_softc *sc;
    11711171{
    1172     struct mbuf *m, *mp;
     1172#ifdef PPP_COMPRESS
     1173    struct mbuf *mp;
     1174#endif
     1175    struct mbuf *m;
    11731176    u_char *cp;
    11741177    int address, control, protocol;
  • cpukit/libnetworking/net/pppcompress.c

    rf48f64a r3274c876  
    406406{
    407407        u_char *hdr, *cp;
    408         int hlen, vjlen;
     408        u_int hlen;
     409        int vjlen;
    409410
    410411        cp = bufp? *bufp: NULL;
  • cpukit/libnetworking/net/slcompress.c

    rf48f64a r3274c876  
    424424{
    425425        u_char *hdr, *cp;
    426         int hlen, vjlen;
     426        u_int hlen;
     427        int vjlen;
    427428
    428429        cp = bufp? *bufp: NULL;
  • cpukit/libnetworking/netinet/ip_output.c

    rf48f64a r3274c876  
    101101        struct mbuf *m = m0;
    102102        int hlen = sizeof (struct ip);
    103         int len, off, error = 0;
     103        int len = 0, off, error = 0;
    104104        struct sockaddr_in *dst;
    105105        struct in_ifaddr *ia;
  • cpukit/libnetworking/netinet/udp_usrreq.c

    rf48f64a r3274c876  
    368368        int s = 0, error = 0;
    369369
     370        laddr.s_addr = 0;
    370371        if (control)
    371372                m_freem(control);               /* XXX */
  • 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 {
  • cpukit/libnetworking/rtems/rtems_select.c

    rf48f64a r3274c876  
    120120        fd_set ob[3];
    121121        int error, timo;
    122         int retval;
     122        int retval = 0;
    123123        rtems_id tid;
    124124        rtems_interval then, now;
  • cpukit/libnetworking/rtems/rtems_showifstat.c

    rf48f64a r3274c876  
    6060                                        {
    6161                                        struct sockaddr_dl *sdl = (struct sockaddr_dl *)ifa->ifa_addr;
    62                                         unsigned char   *cp = LLADDR(sdl);
     62                                        char   *cp = LLADDR(sdl);
    6363                                        int             i;
    6464
  • cpukit/libnetworking/rtems/rtems_showroute.c

    rf48f64a r3274c876  
    148148        int first = 1;
    149149        int nleft = sdl->sdl_alen;
    150         unsigned char *ap = LLADDR (sdl);
     150        char *ap = LLADDR (sdl);
    151151        static const char hextab[16] = "0123456789ABCDEF";
    152152
  • cpukit/libnetworking/rtems/rtems_syscall.c

    rf48f64a r3274c876  
    290290        struct iovec *iov;
    291291        struct socket *so;
    292         struct mbuf *to, *control;
     292        struct mbuf *to;
     293        struct mbuf *control = NULL;
    293294        int i;
    294295        int len;
Note: See TracChangeset for help on using the changeset viewer.