Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
parent
226d80b821
commit
cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue