]> arthur.barton.de Git - netatalk.git/commitdiff
warning fixes
authorbfernhomberg <bfernhomberg>
Sat, 10 Jan 2004 08:09:12 +0000 (08:09 +0000)
committerbfernhomberg <bfernhomberg>
Sat, 10 Jan 2004 08:09:12 +0000 (08:09 +0000)
etc/atalkd/config.c
etc/atalkd/main.c
etc/atalkd/nbp.c
etc/atalkd/zip.c

index ccf8ff49203b55ac5d660ad19e5e18522ddf1947..30ecd69c58fdb1296d5a89f710c4068784a10a68 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: config.c,v 1.13 2003-03-18 23:32:17 srittau Exp $
+ * $Id: config.c,v 1.13.6.1 2004-01-10 08:09:12 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -306,7 +306,8 @@ int readconf( cf )
     struct ifreq       ifr;
     struct interface   *iface, *niface;
     char               line[ MAXLINELEN ], **argv, *p;
-    int                        i, j, s, cc;
+    unsigned int       i, j;
+    int                        s, cc;
     FILE               *conf;
 
     if ( cf == NULL ) {
index 95b58925f62fc35a516315d7e070a8204f6d1c61..3106c04244c0c55619dccc909fe2231732eed243 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: main.c,v 1.17 2002-10-05 13:20:13 didg Exp $
+ * $Id: main.c,v 1.17.8.1 2004-01-10 08:09:12 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -179,6 +179,8 @@ static void as_timer(int sig)
     int                        sentzipq = 0;
     int                        n, cc;
 
+    ap=zap=rap=NULL;
+
     memset(&sat, 0, sizeof( struct sockaddr_at ));
     for ( iface = interfaces; iface; iface = iface->i_next ) {
        if ( iface->i_flags & IFACE_LOOPBACK ) {
index 3306c14c45bf5f3a59535a5b24f1fde4d0031bd8..dda94394a2997f858e31e2c002eb921a48049cc2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbp.c,v 1.10 2002-09-29 23:24:47 sibaz Exp $
+ * $Id: nbp.c,v 1.10.8.1 2004-01-10 08:09:12 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -79,7 +79,7 @@ int nbp_packet( ap, from, data, len )
     struct nbpnve      nn;
     struct sockaddr_at sat;
     struct nbptab      *ntab;
-    struct ziptab      *zt;
+    struct ziptab      *zt=NULL;
     struct interface   *iface;
     struct list                *l;
     struct rtmptab     *rtmp;
index a547018440d6cd9b2915c014b537f21b6db3a4d8..e62fef23d9f42f0f24c7d752b71926fc79f208b0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: zip.c,v 1.11 2002-09-29 23:24:47 sibaz Exp $
+ * $Id: zip.c,v 1.11.8.1 2004-01-10 08:09:12 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -98,7 +98,7 @@ int zip_packet( ap, from, data, len )
     struct atphdr      ah;
     struct interface   *iface;
     struct gate                *gate;
-    struct rtmptab     *rtmp;
+    struct rtmptab     *rtmp = NULL;
     struct list                *l;
     struct ziptab      *zt;
     u_short            firstnet, lastnet, index, nz;