diff options
author | Dan Cross <cross@gajendra.net> | 2020-01-10 14:44:21 +0000 |
---|---|---|
committer | Dan Cross <cross@gajendra.net> | 2020-01-10 14:54:30 +0000 |
commit | fa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch) | |
tree | 81d26256d152435135bcb1ae43121979a49f5f2b /src/libmux/mux.c | |
parent | 77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff) | |
download | plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2 plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip |
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>
Diffstat (limited to 'src/libmux/mux.c')
-rw-r--r-- | src/libmux/mux.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libmux/mux.c b/src/libmux/mux.c index 8257fb0e..e7786079 100644 --- a/src/libmux/mux.c +++ b/src/libmux/mux.c @@ -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; |