summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/fstab.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-04-21 23:38:17 +0000
committerderaadt <deraadt@openbsd.org>1996-04-21 23:38:17 +0000
commitf3bae140e877f130f33051ddb228cb34a056c92b (patch)
treec5f519d1e41a8239f986cc5a6f4fb0b979e31e11 /lib/libc/gen/fstab.c
parentpartial sync with netbsd 960418, more to come (diff)
downloadwireguard-openbsd-f3bae140e877f130f33051ddb228cb34a056c92b.tar.xz
wireguard-openbsd-f3bae140e877f130f33051ddb228cb34a056c92b.zip
sync to netbsd 960418
Diffstat (limited to 'lib/libc/gen/fstab.c')
-rw-r--r--lib/libc/gen/fstab.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/libc/gen/fstab.c b/lib/libc/gen/fstab.c
index cc131dd54d7..bc1e3646d0f 100644
--- a/lib/libc/gen/fstab.c
+++ b/lib/libc/gen/fstab.c
@@ -1,4 +1,5 @@
-/* $NetBSD: fstab.c,v 1.7 1995/02/27 04:34:44 cgd Exp $ */
+/* $OpenBSD: fstab.c,v 1.2 1996/04/21 23:39:19 deraadt Exp $ */
+/* $NetBSD: fstab.c,v 1.8 1996/04/03 19:48:56 jtc Exp $ */
/*
* Copyright (c) 1980, 1988, 1993
@@ -37,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)fstab.c 8.1 (Berkeley) 6/4/93";
#else
-static char rcsid[] = "$NetBSD: fstab.c,v 1.7 1995/02/27 04:34:44 cgd Exp $";
+static char rcsid[] = "$NetBSD: fstab.c,v 1.8 1996/04/03 19:48:56 jtc Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -53,10 +54,10 @@ static char rcsid[] = "$NetBSD: fstab.c,v 1.7 1995/02/27 04:34:44 cgd Exp $";
static FILE *_fs_fp;
static struct fstab _fs_fstab;
-static error __P((int));
-static fstabscan __P((void));
+static void error __P((int));
+static int fstabscan __P((void));
-static
+static int
fstabscan()
{
register char *cp;
@@ -176,6 +177,7 @@ getfsfile(name)
return((struct fstab *)NULL);
}
+int
setfsent()
{
if (_fs_fp) {
@@ -197,7 +199,7 @@ endfsent()
}
}
-static
+static void
error(err)
int err;
{