]> arthur.barton.de Git - netatalk.git/blobdiff - bin/aecho/aecho.c
remove most sparse warning 'symbol 'xxx' was not declared. Should it be static?'
[netatalk.git] / bin / aecho / aecho.c
index e1210e660cb36f9cb7e37dafea393e6836f35a03..274421b53b614e9aba9bad99825cd2a9c9706799 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: aecho.c,v 1.8 2009-10-13 22:55:36 didg Exp $
+ * $Id: aecho.c,v 1.9 2009-10-14 01:38:28 didg Exp $
  *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved.
 #define SOCKLEN_T unsigned int
 #endif /* ! SOCKLEN_T */
 
-struct sockaddr_at     target;
-int                    sock;
-unsigned int           nsent = 0, nrecv = 0;
-time_t                 totalms = 0, minms = -1, maxms = -1;
-unsigned int           pings = 0;
+static struct sockaddr_at      target;
+static int                     sock;
+static unsigned int            nsent = 0, nrecv = 0;
+static time_t                  totalms = 0, minms = -1, maxms = -1;
+static unsigned int            pings = 0;
 
-void usage(char *);
+static void usage(char *);
 
-void done(int sig _U_)
+static void done(int sig _U_)
 {
     if ( nsent) {
        printf( "\n----%d.%d AEP Statistics----\n",
@@ -82,7 +82,7 @@ void done(int sig _U_)
     exit( 0 );
 }
   
-void aep_send(int sig _U_)
+static void aep_send(int sig _U_)
 {
     struct timeval     tv;
     char               *p, buf[ 1024 ];
@@ -257,7 +257,7 @@ int main(int ac, char **av)
     }
 }
 
-void usage( char * av0 )
+static void usage( char * av0 )
 {
     fprintf( stderr, "usage:\t%s [-A source address ] [-c count] ( addr | nbpname )\n", av0 );
     exit( 1 );