Fixed many warnings.

This commit is contained in:
Joel Sherrill
1998-08-20 21:47:37 +00:00
parent 50ea4814aa
commit ff0f694d46
138 changed files with 644 additions and 336 deletions

View File

@@ -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;
}