From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/lib9p/srv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib9p/srv.c') 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 */ -- cgit v1.2.3