Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mark local functions as static to avoid warnings. (main): Use return …
…to silence warning.
  • Loading branch information
Andreas Jaeger committed Dec 5, 2000
1 parent 4242e56 commit d6f1fe4
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions nss/test-netdb.c
Expand Up @@ -51,7 +51,7 @@

int error_count;

void
static void
output_servent (const char *call, struct servent *sptr)
{
char **pptr;
Expand All @@ -68,7 +68,7 @@ output_servent (const char *call, struct servent *sptr)
}


void
static void
test_services (void)
{
struct servent *sptr;
Expand Down Expand Up @@ -112,7 +112,7 @@ test_services (void)
}


void
static void
output_hostent (const char *call, struct hostent *hptr)
{
char **pptr;
Expand All @@ -134,7 +134,7 @@ output_hostent (const char *call, struct hostent *hptr)
}
}

void
static void
test_hosts (void)
{
struct hostent *hptr1, *hptr2;
Expand Down Expand Up @@ -202,7 +202,7 @@ test_hosts (void)
}


void
static void
output_netent (const char *call, struct netent *nptr)
{
char **pptr;
Expand All @@ -222,7 +222,7 @@ output_netent (const char *call, struct netent *nptr)
}
}

void
static void
test_network (void)
{
struct netent *nptr;
Expand Down Expand Up @@ -253,7 +253,7 @@ test_network (void)
}


void
static void
output_protoent (const char *call, struct protoent *prptr)
{
char **pptr;
Expand All @@ -270,7 +270,7 @@ output_protoent (const char *call, struct protoent *prptr)
}


void
static void
test_protocols (void)
{
struct protoent *prptr;
Expand All @@ -292,7 +292,7 @@ test_protocols (void)
}


void
static void
output_rpcent (const char *call, struct rpcent *rptr)
{
char **pptr;
Expand All @@ -308,7 +308,7 @@ output_rpcent (const char *call, struct rpcent *rptr)
}
}

void
static void
test_rpc (void)
{
struct rpcent *rptr;
Expand All @@ -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))
Expand Down Expand Up @@ -368,5 +366,5 @@ main (void)
else
printf ("No visible errors occurred!\n");

exit (error_count);
return (error_count != 0);
}

0 comments on commit d6f1fe4

Please sign in to comment.