aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ramfs.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-04 21:26:30 +0000
committerrsc <devnull@localhost>2005-01-04 21:26:30 +0000
commitf583e2b1d85043872c67fb3059ef7f34ea4a60c7 (patch)
treeae8febd129389fd1d6861e5c038258c1a231a6b6 /src/cmd/ramfs.c
parent9e0b4272746716b9bf8e26f165b0f37b4fa9f4a0 (diff)
downloadplan9port-f583e2b1d85043872c67fb3059ef7f34ea4a60c7.tar.gz
plan9port-f583e2b1d85043872c67fb3059ef7f34ea4a60c7.tar.bz2
plan9port-f583e2b1d85043872c67fb3059ef7f34ea4a60c7.zip
don't be dumb.
Diffstat (limited to 'src/cmd/ramfs.c')
-rw-r--r--src/cmd/ramfs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cmd/ramfs.c b/src/cmd/ramfs.c
index a64c0a1e..4cf50043 100644
--- a/src/cmd/ramfs.c
+++ b/src/cmd/ramfs.c
@@ -2,8 +2,6 @@
#include <libc.h>
#include <fcall.h>
-int post9pservice(int, char*);
-
/*
* Rather than reading /adm/users, which is a lot of work for
* a toy program, we assume all groups have the form
@@ -147,7 +145,7 @@ main(int argc, char *argv[])
initfcalls();
service = "ramfs";
- defmnt = "/tmp";
+ defmnt = nil;
ARGBEGIN{
case 'D':
debug = 1;
@@ -159,7 +157,7 @@ main(int argc, char *argv[])
mfd[1] = 1;
break;
case 's':
- defmnt = 0;
+ defmnt = nil;
break;
case 'm':
defmnt = ARGF();
@@ -175,9 +173,6 @@ main(int argc, char *argv[])
usage();
}ARGEND
- if(defmnt)
- sysfatal("cannot mount -- not on plan 9");
-
if(pipe(p) < 0)
error("pipe failed");
if(!stdio){