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/libdraw/event.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/libdraw/event.c')
-rw-r--r-- | src/libdraw/event.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/libdraw/event.c b/src/libdraw/event.c index b369c020..9d7e10c2 100644 --- a/src/libdraw/event.c +++ b/src/libdraw/event.c @@ -187,7 +187,7 @@ static Ebuf* newebuf(Slave *s, int n) { Ebuf *eb; - + eb = malloc(sizeof(*eb) - sizeof(eb->u.buf) + n); if(eb == nil) drawerror(display, "events: out of memory"); @@ -205,7 +205,7 @@ startrpc(int type) { uchar buf[100]; Wsysmsg w; - + w.type = type; convW2M(&w, buf, sizeof buf); return muxrpcstart(display->mux, buf); @@ -217,7 +217,7 @@ finishrpc(Muxrpc *r, Wsysmsg *w) uchar *p; void *v; int n; - + if(!muxrpccanfinish(r, &v)) return 0; p = v; @@ -245,9 +245,9 @@ extract(int canblock) * Also make sure that we don't interfere with app-specific locking. */ if(display->locking){ - /* - * if locking is being done by program, - * this means it can't depend on automatic + /* + * if locking is being done by program, + * this means it can't depend on automatic * flush in emouse() etc. */ if(canqlock(&display->qlock)){ @@ -311,7 +311,7 @@ extract(int canblock) max = eslave[i].fd; } } - + if(!canblock){ tv.tv_sec = 0; tv.tv_usec = 0; @@ -437,4 +437,3 @@ ereadmouse(Mouse *m) eresized(1); return 1; } - |