ref: cc048783edc4110c8d6dd61ac4b23ef463c45d46
parent: 06cce7c189e5c3f0cf1e51b74ea7a3176dd0ea8f
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue May 19 13:47:48 EDT 2020
9gc: fix warnings
--- a/9gc.c
+++ b/9gc.c
@@ -188,6 +188,7 @@
case Rread:
write(1, r->read.data, r->read.size);
a->chatoff += r->read.size;
+ /* fallthrough */
case Ropen:
if ((a->flags & Joined) == 0 && printjoin) {
c9write(ctx, &tag, Chatfid, 0, buf, snprintf(buf, sizeof(buf), "JOIN %s to chat\n", nick));
@@ -320,7 +321,7 @@
chatrw(C9aux *a)
{
fd_set r, e;
- int n, fl, sz;
+ int n, sz;
C9tag tag;
C9ctx *ctx;
char *s;
@@ -342,7 +343,6 @@
}
ctx = (C9ctx*)a;
- fl = 0;
if (FD_ISSET(a->f, &r))
c9proc(ctx);
if (FD_ISSET(0, &r)) {