From ff0f694d466fb114c185bf464811658f97d012f1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 20 Aug 1998 21:47:37 +0000 Subject: Fixed many warnings. --- c/src/exec/libnetworking/lib/getprotoby.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/exec/libnetworking/lib/getprotoby.c') 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; } -- cgit v1.2.3