projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
518a5d5
)
Fix 1 error+2 warnings. Tested with Webmin 1.570 with OpenBSD 2011-08-07 00:02 snapshot.
author
Neo139
<profetasdelmetal@gmail.com>
Sat, 8 Oct 2011 19:02:14 +0000
(16:02 -0300)
committer
Neo139
<profetasdelmetal@gmail.com>
Sat, 8 Oct 2011 19:02:14 +0000
(16:02 -0300)
mount/openbsd-mounts-2.c
patch
|
blob
|
history
diff --git
a/mount/openbsd-mounts-2.c
b/mount/openbsd-mounts-2.c
index
ab24d32
..
625cb85
100644
(file)
--- a/
mount/openbsd-mounts-2.c
+++ b/
mount/openbsd-mounts-2.c
@@
-3,6
+3,8
@@
#include <sys/param.h>
#include <sys/ucred.h>
#include <sys/mount.h>
+#include <stdlib.h>
+#include <string.h>
char *find_type(int t);
char *expand_flags(int f);
@@
-40,7
+42,9
@@
if (f & MNT_NODEV) strcat(buf, "nodev,");
if (f & MNT_SYNCHRONOUS) strcat(buf, "sync,");
if (f & MNT_ASYNC) strcat(buf, "async,");
if (f & MNT_QUOTA) strcat(buf, "quota,");
+#ifdef MNT_UNION
if (f & MNT_UNION) strcat(buf, "union,");
+#endif
if (buf[0] == 0) return "-";
buf[strlen(buf)-1] = 0;
return buf;