summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getprotoname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/getprotoname.c')
-rw-r--r--lib/libc/net/getprotoname.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/net/getprotoname.c b/lib/libc/net/getprotoname.c
index 0832acf..7039b0a 100644
--- a/lib/libc/net/getprotoname.c
+++ b/lib/libc/net/getprotoname.c
@@ -34,6 +34,8 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getprotoname.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <netdb.h>
#include <string.h>
@@ -42,10 +44,10 @@ extern int _proto_stayopen;
struct protoent *
getprotobyname(name)
- register const char *name;
+ const char *name;
{
- register struct protoent *p;
- register char **cp;
+ struct protoent *p;
+ char **cp;
setprotoent(_proto_stayopen);
while ( (p = getprotoent()) ) {
OpenPOWER on IntegriCloud