Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.

This commit is contained in:
rsc 2006-04-01 19:24:03 +00:00
parent 226d80b821
commit cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions

View file

@ -44,7 +44,7 @@ muxrpc(Mux *mux, void *tx)
/* assign the tag, add selves to response queue */
qlock(&mux->lk);
tag = gettag(mux, r);
//print("gettag %p %d\n", r, tag);
/*print("gettag %p %d\n", r, tag); */
enqueue(mux, r);
qunlock(&mux->lk);
@ -77,7 +77,7 @@ muxrpc(Mux *mux, void *tx)
tag = mux->gettag(mux, p) - mux->mintag;
else
tag = ~0;
//print("mux tag %d\n", tag);
/*print("mux tag %d\n", tag); */
qlock(&mux->lk);
if(p == nil){ /* eof -- just give up and pass the buck */
dequeue(mux, r);
@ -105,7 +105,7 @@ muxrpc(Mux *mux, void *tx)
if(mux->sleep.next != &mux->sleep)
rwakeup(&mux->sleep.next->r);
}
//print("finished %p\n", r);
/*print("finished %p\n", r); */
p = r->p;
puttag(mux, r);
qunlock(&mux->lk);