/*
- * $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",
exit( 0 );
}
-void aep_send(int sig _U_)
+static void aep_send(int sig _U_)
{
struct timeval tv;
char *p, buf[ 1024 ];
}
}
-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 );