summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/res_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/libc/res_init.c')
-rw-r--r--cpukit/libnetworking/libc/res_init.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/cpukit/libnetworking/libc/res_init.c b/cpukit/libnetworking/libc/res_init.c
index 6cc1fb58ef..564c230311 100644
--- a/cpukit/libnetworking/libc/res_init.c
+++ b/cpukit/libnetworking/libc/res_init.c
@@ -139,7 +139,7 @@ struct __res_state _res
* Return 0 if completes successfully, -1 on error
*/
int
-res_init()
+res_init(void)
{
FILE *fp;
char *cp, **pp;
@@ -426,8 +426,9 @@ res_init()
}
static void
-res_setoptions(options, source)
- char *options, *source;
+res_setoptions(
+ char *options,
+ char *source)
{
char *cp = options;
int i;
@@ -477,8 +478,8 @@ res_setoptions(options, source)
#ifdef RESOLVSORT
/* XXX - should really support CIDR which means explicit masks always. */
static u_int32_t
-net_mask(in) /* XXX - should really use system's version of this */
- struct in_addr in;
+net_mask( /* XXX - should really use system's version of this */
+ struct in_addr in)
{
u_int32_t i = ntohl(in.s_addr);
@@ -491,7 +492,7 @@ net_mask(in) /* XXX - should really use system's version of this */
#endif
u_int
-res_randomid()
+res_randomid(void)
{
struct timeval now;