aboutsummaryrefslogtreecommitdiff
path: root/sbin/newfs
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1997-01-16 21:58:40 +0000
committerAlexander Langer <alex@FreeBSD.org>1997-01-16 21:58:40 +0000
commit8abdc2eb40c03b97153f2a01bdb53927f3a336c1 (patch)
treed61898dd79824c10ca33127214d8569c804559c2 /sbin/newfs
parent839cc09e5384e6f8c0ebb9203052015b532cfce7 (diff)
downloadsrc-8abdc2eb40c03b97153f2a01bdb53927f3a336c1.tar.gz
src-8abdc2eb40c03b97153f2a01bdb53927f3a336c1.zip
Notes
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/mkfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c
index 20d68327e329..e7504b0c79b1 100644
--- a/sbin/newfs/mkfs.c
+++ b/sbin/newfs/mkfs.c
@@ -183,7 +183,7 @@ mkfs(pp, fsys, fi, fo)
MAP_SHARED,
fd,
0);
- if((int)membase == -1) {
+ if(membase == MAP_FAILED) {
perror("mmap");
exit(12);
}