about summary refs log tree commit diff
path: root/nss/test-netdb.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-12-05 08:14:51 +0000
committerAndreas Jaeger <aj@suse.de>2000-12-05 08:14:51 +0000
commitd6f1fe47aa10f51e7c630904e3605d0d04b43b42 (patch)
tree50aeb0da4f92d3e588e4a8e763a57cdec6693008 /nss/test-netdb.c
parent4242e56a074ffb2fea2c3e317d9e57bb9c233d56 (diff)
downloadglibc-d6f1fe47aa10f51e7c630904e3605d0d04b43b42.tar.gz
glibc-d6f1fe47aa10f51e7c630904e3605d0d04b43b42.tar.xz
glibc-d6f1fe47aa10f51e7c630904e3605d0d04b43b42.zip
Mark local functions as static to avoid warnings. (main): Use return to silence warning.
Diffstat (limited to 'nss/test-netdb.c')
-rw-r--r--nss/test-netdb.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/nss/test-netdb.c b/nss/test-netdb.c
index afce9587ca..837b078de6 100644
--- a/nss/test-netdb.c
+++ b/nss/test-netdb.c
@@ -51,7 +51,7 @@
 
 int error_count;
 
-void
+static void
 output_servent (const char *call, struct servent *sptr)
 {
   char **pptr;
@@ -68,7 +68,7 @@ output_servent (const char *call, struct servent *sptr)
 }
 
 
-void
+static void
 test_services (void)
 {
   struct servent *sptr;
@@ -112,7 +112,7 @@ test_services (void)
 }
 
 
-void
+static void
 output_hostent (const char *call, struct hostent *hptr)
 {
   char **pptr;
@@ -134,7 +134,7 @@ output_hostent (const char *call, struct hostent *hptr)
     }
 }
 
-void
+static void
 test_hosts (void)
 {
   struct hostent *hptr1, *hptr2;
@@ -202,7 +202,7 @@ test_hosts (void)
 }
 
 
-void
+static void
 output_netent (const char *call, struct netent *nptr)
 {
   char **pptr;
@@ -222,7 +222,7 @@ output_netent (const char *call, struct netent *nptr)
     }
 }
 
-void
+static void
 test_network (void)
 {
   struct netent *nptr;
@@ -253,7 +253,7 @@ test_network (void)
 }
 
 
-void
+static void
 output_protoent (const char *call, struct protoent *prptr)
 {
   char **pptr;
@@ -270,7 +270,7 @@ output_protoent (const char *call, struct protoent *prptr)
 }
 
 
-void
+static void
 test_protocols (void)
 {
   struct protoent *prptr;
@@ -292,7 +292,7 @@ test_protocols (void)
 }
 
 
-void
+static void
 output_rpcent (const char *call, struct rpcent *rptr)
 {
   char **pptr;
@@ -308,7 +308,7 @@ output_rpcent (const char *call, struct rpcent *rptr)
     }
 }
 
-void
+static void
 test_rpc (void)
 {
   struct rpcent *rptr;
@@ -329,11 +329,9 @@ test_rpc (void)
   endrpcent ();
 }
 
-/*
-  Override /etc/nsswitch.conf for this program.
-  This is mainly useful for developers
-*/
-void
+/* Override /etc/nsswitch.conf for this program.  This is mainly
+   useful for developers. */
+static void  __attribute__ ((unused))
 setdb (const char *dbname)
 {
   if (strcmp ("db", dbname))
@@ -368,5 +366,5 @@ main (void)
   else
     printf ("No visible errors occurred!\n");
 
-  exit (error_count);
+  return (error_count != 0);
 }