summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/lib/getprotoby.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libnetworking/lib/getprotoby.c')
-rw-r--r--c/src/exec/libnetworking/lib/getprotoby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/libnetworking/lib/getprotoby.c b/c/src/exec/libnetworking/lib/getprotoby.c
index b90c247a54..e0aa3bfbdb 100644
--- a/c/src/exec/libnetworking/lib/getprotoby.c
+++ b/c/src/exec/libnetworking/lib/getprotoby.c
@@ -21,7 +21,7 @@ getprotobyname (const char *name)
for (i = 0 ; i < (sizeof prototab / sizeof prototab[0]) ; i++) {
if (strcmp (name, prototab[i].p_name) == 0)
- return &prototab[i];
+ return (struct protoent *) &prototab[i];
}
return NULL;
}
@@ -36,7 +36,7 @@ getprotobynumber (int proto)
for (i = 0 ; i < (sizeof prototab / sizeof prototab[0]) ; i++) {
if (proto == prototab[i].p_proto)
- return &prototab[i];
+ return (struct protoent *) &prototab[i];
}
return NULL;
}