]> arthur.barton.de Git - netatalk.git/blobdiff - bin/getzones/getzones.c
Fix ressource leak, from Riccardo Magliocchetti
[netatalk.git] / bin / getzones / getzones.c
index 6d8a5eefd62fa721843addab9a77e98388b3871a..b1757109c7ecc3fd9c7c981f198b7c27b27b5bfd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: getzones.c,v 1.8 2009-10-13 22:55:36 didg Exp $
+ * $Id: getzones.c,v 1.9 2009-10-14 01:38:28 didg Exp $
  */
 
 #ifdef HAVE_CONFIG_H
@@ -27,9 +27,9 @@
 #include <atalk/unicode.h>
 #include <atalk/zip.h>
 
-void print_zones(short n, char *buf);
+static void print_zones(short n, char *buf);
 
-void usage( char *s)
+static void usage( char *s)
 {
     fprintf( stderr, "usage:\t%s [-m | -l] [address]\n", s );
     exit( 1 );
@@ -147,7 +147,7 @@ int main( int argc, char *argv[])
  * n:   number of zones in this packet
  * buf: zone length/name pairs
  */
-void print_zones( short n, char *buf )
+static void print_zones( short n, char *buf )
 {
     size_t zone_len;
     char *zone;