int error_count;
-void
+static void
output_servent (const char *call, struct servent *sptr)
{
char **pptr;
}
-void
+static void
test_services (void)
{
struct servent *sptr;
}
-void
+static void
output_hostent (const char *call, struct hostent *hptr)
{
char **pptr;
}
}
-void
+static void
test_hosts (void)
{
struct hostent *hptr1, *hptr2;
}
-void
+static void
output_netent (const char *call, struct netent *nptr)
{
char **pptr;
}
}
-void
+static void
test_network (void)
{
struct netent *nptr;
}
-void
+static void
output_protoent (const char *call, struct protoent *prptr)
{
char **pptr;
}
-void
+static void
test_protocols (void)
{
struct protoent *prptr;
}
-void
+static void
output_rpcent (const char *call, struct rpcent *rptr)
{
char **pptr;
}
}
-void
+static void
test_rpc (void)
{
struct rpcent *rptr;
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))
else
printf ("No visible errors occurred!\n");
- exit (error_count);
+ return (error_count != 0);
}