summaryrefslogtreecommitdiff
path: root/lib/libc/net/getservent.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-16 03:13:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-16 03:13:23 +0000
commitee84e00f02217904f6f2c84732f1302878273ce2 (patch)
tree382682937ab6c34af8f493adab8608ba7f80d804 /lib/libc/net/getservent.c
parent99d68b528b26b0bd0348de75532db859fc621a18 (diff)
ansi
Diffstat (limited to 'lib/libc/net/getservent.c')
-rw-r--r--lib/libc/net/getservent.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c
index bad3316f6cf..475e25a1f89 100644
--- a/lib/libc/net/getservent.c
+++ b/lib/libc/net/getservent.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getservent.c,v 1.6 2003/06/02 20:18:35 millert Exp $";
+static char rcsid[] = "$OpenBSD: getservent.c,v 1.7 2004/09/16 03:13:22 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -47,8 +47,7 @@ static char *serv_aliases[MAXALIASES];
int _serv_stayopen;
void
-setservent(f)
- int f;
+setservent(int f)
{
if (servf == NULL)
servf = fopen(_PATH_SERVICES, "r" );
@@ -58,7 +57,7 @@ setservent(f)
}
void
-endservent()
+endservent(void)
{
if (servf) {
fclose(servf);
@@ -68,7 +67,7 @@ endservent()
}
struct servent *
-getservent()
+getservent(void)
{
char *p, *cp, **q, *endp;
long l;