summaryrefslogtreecommitdiff
path: root/sbin/mount/mount.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-12-03 01:04:45 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-12-03 01:04:45 +0000
commit0d21ef0815f117f6c6ea39a71f98d7d6689eb7ba (patch)
tree70d09c4418d5b572e4e154318ec608d69ca509d2 /sbin/mount/mount.c
parent29722fdc0f175223128ea13d62cc2de28546df0d (diff)
readlabelfs() moves to libutil, and return value changes.
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r--sbin/mount/mount.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 6cb66c29b7c..771b21d5a9c 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.c,v 1.6 1996/11/12 09:09:19 downsj Exp $ */
+/* $OpenBSD: mount.c,v 1.7 1996/12/03 01:04:44 downsj Exp $ */
/* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mount.c 8.19 (Berkeley) 4/19/94";
#else
-static char rcsid[] = "$OpenBSD: mount.c,v 1.6 1996/11/12 09:09:19 downsj Exp $";
+static char rcsid[] = "$OpenBSD: mount.c,v 1.7 1996/12/03 01:04:44 downsj Exp $";
#endif
#endif /* not lint */
@@ -60,6 +60,7 @@ static char rcsid[] = "$OpenBSD: mount.c,v 1.6 1996/11/12 09:09:19 downsj Exp $"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <util.h>
#include "pathnames.h"
@@ -78,8 +79,6 @@ int mountfs __P((const char *, const char *, const char *,
void prmount __P((struct statfs *));
void usage __P((void));
-char *readlabelfs __P((char *));
-
/* Map from mount otions to printable formats. */
static struct opt {
int o_opt;
@@ -235,7 +234,7 @@ main(argc, argv)
vfstype = "nfs";
else {
char *labelfs = readlabelfs(argv[0]);
- if (labelfs != NULL)
+ if (labelfs != "")
vfstype = labelfs;
}
}