Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user