From: bfernhomberg Date: Sat, 10 Jan 2004 08:09:12 +0000 (+0000) Subject: warning fixes X-Git-Tag: netatalk-2-0-alpha1~8 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=70076443c8dc1ef09fe3f5e8e3aeb56b2025a29c;p=netatalk.git warning fixes --- diff --git a/etc/atalkd/config.c b/etc/atalkd/config.c index ccf8ff49..30ecd69c 100644 --- a/etc/atalkd/config.c +++ b/etc/atalkd/config.c @@ -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 ) { diff --git a/etc/atalkd/main.c b/etc/atalkd/main.c index 95b58925..3106c042 100644 --- a/etc/atalkd/main.c +++ b/etc/atalkd/main.c @@ -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 ) { diff --git a/etc/atalkd/nbp.c b/etc/atalkd/nbp.c index 3306c14c..dda94394 100644 --- a/etc/atalkd/nbp.c +++ b/etc/atalkd/nbp.c @@ -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; diff --git a/etc/atalkd/zip.c b/etc/atalkd/zip.c index a5470184..e62fef23 100644 --- a/etc/atalkd/zip.c +++ b/etc/atalkd/zip.c @@ -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;