diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-20 21:47:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-20 21:47:37 +0000 |
commit | ff0f694d466fb114c185bf464811658f97d012f1 (patch) | |
tree | 1eef0becdabdf6a9902d265a84fc9bf9fd9389d5 /c/src/exec/libnetworking/lib/getprotoby.c | |
parent | changed version to 980820-BSD (diff) | |
download | rtems-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.c | 4 |
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; } |