aboutsummaryrefslogtreecommitdiff
path: root/src/libmux
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/libmux
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-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')
-rw-r--r--src/libmux/io.c5
-rw-r--r--src/libmux/mux.c10
2 files changed, 7 insertions, 8 deletions
diff --git a/src/libmux/io.c b/src/libmux/io.c
index 3a2a9331..644f07de 100644
--- a/src/libmux/io.c
+++ b/src/libmux/io.c
@@ -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;
}
-
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;