diff options
-rw-r--r-- | lobby.c | 2 | ||||
-rw-r--r-- | musw.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,7 @@ static int lobby_leaveseat(Lobby *l, ulong idx) { if(idx < l->seats.cap-1) - memmove(&l->seats.fds[idx], &l->seats.fds[idx+1], l->seats.cap*sizeof(int) - (l->seats.len + 1)*sizeof(int)); + memmove(&l->seats.fds[idx], &l->seats.fds[idx+1], l->seats.cap*sizeof(int) - (idx + 1)*sizeof(int)); l->seats.len--; return 0; } @@ -16,7 +16,7 @@ threadnetin(void *arg) while((n = ioread(io, fd, buf, sizeof buf)) > 0) if(iowrite(io, 1, buf, n) != n) - fprint(2, "iowrite: %r\n"); + fprint(2, "netin iowrite: %r\n"); closeioproc(io); } @@ -32,7 +32,7 @@ threadnetout(void *arg) while((n = ioread(io, 0, buf, sizeof buf)) > 0) if(iowrite(io, fd, buf, n) != n) - fprint(2, "iowrite: %r\n"); + fprint(2, "netout iowrite: %r\n"); closeioproc(io); } |