Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
parent
77a0a5b519
commit
fa325e9b42
1021 changed files with 5688 additions and 6193 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
/*
|
||||
* If you fork off two procs running muxrecvproc and muxsendproc,
|
||||
* then muxrecv/muxsend (and thus muxrpc) will never block except on
|
||||
* then muxrecv/muxsend (and thus muxrpc) will never block except on
|
||||
* rendevouses, which is nice when it's running in one thread of many.
|
||||
*/
|
||||
void
|
||||
|
|
@ -137,9 +137,8 @@ _muxsend(Mux *mux, void *p)
|
|||
if(mux->send(mux, p) < 0){
|
||||
qunlock(&mux->outlk);
|
||||
/* vthangup(mux); */
|
||||
return -1;
|
||||
return -1;
|
||||
}
|
||||
qunlock(&mux->outlk);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ static Muxrpc*
|
|||
allocmuxrpc(Mux *mux)
|
||||
{
|
||||
Muxrpc *r;
|
||||
|
||||
|
||||
/* must malloc because stack could be private */
|
||||
r = mallocz(sizeof(Muxrpc), 1);
|
||||
if(r == nil){
|
||||
|
|
@ -40,7 +40,7 @@ allocmuxrpc(Mux *mux)
|
|||
r->mux = mux;
|
||||
r->r.l = &mux->lk;
|
||||
r->waiting = 1;
|
||||
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ tagmuxrpc(Muxrpc *r, void *tx)
|
|||
{
|
||||
int tag;
|
||||
Mux *mux;
|
||||
|
||||
|
||||
mux = r->mux;
|
||||
/* assign the tag, add selves to response queue */
|
||||
qlock(&mux->lk);
|
||||
|
|
@ -91,7 +91,7 @@ muxmsgandqlock(Mux *mux, void *p)
|
|||
fprint(2, "%s: bad rpc tag %ux (no one waiting on that tag)\n", argv0, tag);
|
||||
/* must leak packet! don't know how to free it! */
|
||||
return;
|
||||
}
|
||||
}
|
||||
r2->p = p;
|
||||
dequeue(mux, r2);
|
||||
rwakeup(&r2->r);
|
||||
|
|
@ -222,7 +222,7 @@ dequeue(Mux *mux, Muxrpc *r)
|
|||
r->next = nil;
|
||||
}
|
||||
|
||||
static int
|
||||
static int
|
||||
gettag(Mux *mux, Muxrpc *r)
|
||||
{
|
||||
int i, mw;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue