diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/lib9p | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-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/lib9p')
-rw-r--r-- | src/lib9p/ramfs.c | 4 | ||||
-rw-r--r-- | src/lib9p/srv.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lib9p/ramfs.c b/src/lib9p/ramfs.c index a2f0b3d7..4be18793 100644 --- a/src/lib9p/ramfs.c +++ b/src/lib9p/ramfs.c @@ -25,7 +25,7 @@ fsread(Req *r) offset = r->ifcall.offset; count = r->ifcall.count; -//print("read %ld %lld\n", *count, offset); +/*print("read %ld %lld\n", *count, offset); */ if(offset >= rf->ndata){ r->ofcall.count = 0; respond(r, nil); @@ -104,7 +104,7 @@ fsdestroyfile(File *f) { Ramfile *rf; -//fprint(2, "clunk\n"); +/*fprint(2, "clunk\n"); */ rf = f->aux; if(rf){ free(rf->data); diff --git a/src/lib9p/srv.c b/src/lib9p/srv.c index 2ceba545..29b1ac2d 100644 --- a/src/lib9p/srv.c +++ b/src/lib9p/srv.c @@ -7,20 +7,20 @@ int chatty9p; -// static char Ebadattach[] = "unknown specifier in attach"; +/* static char Ebadattach[] = "unknown specifier in attach"; */ static char Ebadoffset[] = "bad offset"; -// static char Ebadcount[] = "bad count"; +/* static char Ebadcount[] = "bad count"; */ static char Ebotch[] = "9P protocol botch"; static char Ecreatenondir[] = "create in non-directory"; static char Edupfid[] = "duplicate fid"; static char Eduptag[] = "duplicate tag"; static char Eisdir[] = "is a directory"; static char Enocreate[] = "create prohibited"; -// static char Enomem[] = "out of memory"; +/* static char Enomem[] = "out of memory"; */ static char Enoremove[] = "remove prohibited"; static char Enostat[] = "stat prohibited"; static char Enotfound[] = "file not found"; -// static char Enowrite[] = "write prohibited"; +/* static char Enowrite[] = "write prohibited"; */ static char Enowstat[] = "wstat prohibited"; static char Eperm[] = "permission denied"; static char Eunknownfid[] = "unknown fid"; @@ -348,7 +348,7 @@ rwalk(Req *r, char *error) if(error==nil && r->ifcall.nwname!=0) r->error = Enotfound; }else - r->error = nil; // No error on partial walks + r->error = nil; /* No error on partial walks */ }else{ if(r->ofcall.nwqid == 0){ /* Just a clone */ |