aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pserve.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/9pserve.c
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/9pserve.c')
-rw-r--r--src/cmd/9pserve.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c
index 06c95f55..07ed8e08 100644
--- a/src/cmd/9pserve.c
+++ b/src/cmd/9pserve.c
@@ -8,7 +8,7 @@ enum
{
STACK = 32768,
NHASH = 31,
- MAXMSG = 64, /* per connection */
+ MAXMSG = 64 /* per connection */
};
typedef struct Hash Hash;
@@ -240,8 +240,8 @@ mainproc(void *v)
threadcreate(inputthread, nil, STACK);
threadcreate(outputthread, nil, STACK);
-// if(rootfid)
-// dorootstat();
+/* if(rootfid) */
+/* dorootstat(); */
threadcreate(listenthread, nil, STACK);
threadexits(0);
@@ -618,14 +618,14 @@ openfdthread(void *v)
sendomsg(m);
recvp(c->internal);
if(m->rx.type == Rerror){
- // fprint(2, "%T read error: %s\n", m->rx.ename);
+ /* fprint(2, "%T read error: %s\n", m->rx.ename); */
break;
}
if(m->rx.count == 0)
break;
tot += m->rx.count;
if(iowrite(io, c->fd, m->rx.data, m->rx.count) != m->rx.count){
- // fprint(2, "%T pipe write error: %r\n");
+ /* fprint(2, "%T pipe write error: %r\n"); */
break;
}
msgput(m);
@@ -658,7 +658,7 @@ openfdthread(void *v)
sendomsg(m);
recvp(c->internal);
if(m->rx.type == Rerror){
- // fprint(2, "%T write error: %s\n", m->rx.ename);
+ /* fprint(2, "%T write error: %s\n", m->rx.ename); */
}
tot += n;
msgput(m);
@@ -907,7 +907,7 @@ inputthread(void *arg)
msgput(m);
}
closeioproc(io);
- //fprint(2, "%T input eof\n");
+ /*fprint(2, "%T input eof\n"); */
threadexitsall(0);
}