summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/lib/getprotoby.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-20 21:47:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-20 21:47:37 +0000
commitff0f694d466fb114c185bf464811658f97d012f1 (patch)
tree1eef0becdabdf6a9902d265a84fc9bf9fd9389d5 /c/src/exec/libnetworking/lib/getprotoby.c
parentchanged version to 980820-BSD (diff)
downloadrtems-ff0f694d466fb114c185bf464811658f97d012f1.tar.bz2
Fixed many warnings.
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;
}