aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9p.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9p.c')
-rw-r--r--src/cmd/9p.c41
1 files changed, 20 insertions, 21 deletions
diff --git a/src/cmd/9p.c b/src/cmd/9p.c
index c8d4c444..75511a19 100644
--- a/src/cmd/9p.c
+++ b/src/cmd/9p.c
@@ -94,7 +94,7 @@ threadmain(int argc, char **argv)
threadexitsall(0);
}
}
- usage();
+ usage();
}
CFsys*
@@ -168,7 +168,7 @@ xread(int argc, char **argv)
fsclose(fid);
if(n < 0)
sysfatal("read error: %r");
- threadexitsall(0);
+ threadexitsall(0);
}
void
@@ -192,7 +192,7 @@ xreadfd(int argc, char **argv)
sysfatal("write error: %r");
if(n < 0)
sysfatal("read error: %r");
- threadexitsall(0);
+ threadexitsall(0);
}
void
@@ -246,7 +246,7 @@ xwrite(int argc, char **argv)
if(n < 0)
sysfatal("read error: %r");
fsclose(fid);
- threadexitsall(0);
+ threadexitsall(0);
}
void
@@ -270,7 +270,7 @@ xwritefd(int argc, char **argv)
sysfatal("write error: %r");
if(n < 0)
sysfatal("read error: %r");
- threadexitsall(0);
+ threadexitsall(0);
}
void
@@ -331,7 +331,7 @@ xrdwr(int argc, char **argv)
fprint(2, "write: %r\n");
}
fsclose(fid);
- threadexitsall(0);
+ threadexitsall(0);
}
void
@@ -346,10 +346,10 @@ xcreate(int argc, char **argv)
default:
usage();
}ARGEND
-
+
if(argc == 0)
usage();
-
+
for(i=0; i<argc; i++){
fs = xparse(argv[i], &p);
if((fid=fscreate(fs, p, OREAD, 0666)) == nil)
@@ -371,10 +371,10 @@ xrm(int argc, char **argv)
default:
usage();
}ARGEND
-
+
if(argc == 0)
usage();
-
+
for(i=0; i<argc; i++){
fs = xparse(argv[i], &p);
if(fsremove(fs, p) < 0)
@@ -389,7 +389,7 @@ rdcon(void *v)
int n;
char buf[4096];
CFid *fid;
-
+
fid = v;
for(;;){
n = read(0, buf, sizeof buf);
@@ -408,7 +408,7 @@ xcon(int argc, char **argv)
char buf[4096], *r, *w, *e;
int n, nocr;
CFid *fid;
-
+
nocr = 1;
ARGBEGIN{
@@ -438,12 +438,12 @@ xcon(int argc, char **argv)
threadexitsall(0);
}
fsclose(fid);
- threadexitsall(0);
+ threadexitsall(0);
}
-static char *mon[] =
+static char *mon[] =
{
- "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
@@ -454,7 +454,7 @@ timefmt(Fmt *fmt)
ulong u;
static ulong time0;
Tm *tm;
-
+
if(time0 == 0)
time0 = time(0);
u = va_arg(fmt->args, ulong);
@@ -470,7 +470,7 @@ static int
dircmp(const void *va, const void *vb)
{
Dir *a, *b;
-
+
a = (Dir*)va;
b = (Dir*)vb;
return strcmp(a->name, b->name);
@@ -480,7 +480,7 @@ static int
timecmp(const void *va, const void *vb)
{
Dir *a, *b;
-
+
a = (Dir*)va;
b = (Dir*)vb;
if(a->mtime < b->mtime)
@@ -520,12 +520,12 @@ xls(int argc, char **argv)
tflag = 1;
break;
}ARGEND
-
+
fmtinstall('D', dirfmt);
fmtinstall('M', dirmodefmt);
quotefmtinstall();
fmtinstall('T', timefmt);
-
+
if(argc == 0){
argv = dot;
argc = 1;
@@ -600,4 +600,3 @@ xls(int argc, char **argv)
}
threadexitsall(err);
}
-