From 9915cb618fd8552372756ce3d1877d6e8564d021 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 1 Sep 2017 13:55:48 -0400 Subject: Revert "Add client readOnly mode" This reverts commit 9a6c9c91c8092603b914cc0b3085d059e162ca29. --- client.c | 7 +------ torus.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/client.c b/client.c index 707d50b..30a400c 100644 --- a/client.c +++ b/client.c @@ -44,8 +44,6 @@ static int client; -static bool readOnly = false; - static void clientMessage(const struct ClientMessage *msg) { ssize_t len = send(client, msg, sizeof(*msg), 0); if (len < 0) err(EX_IOERR, "send"); @@ -60,7 +58,6 @@ static void clientMove(int8_t dx, int8_t dy) { } static void clientPut(uint8_t color, char cell) { - if (readOnly) return; struct ClientMessage msg = { .type = CLIENT_PUT, .data.p = { .color = color, .cell = cell }, @@ -384,9 +381,7 @@ static void initColors(void) { } } -int main(int argc, char *argv[] UNUSED) { - if (argc > 1) readOnly = true; - +int main() { client = socket(PF_LOCAL, SOCK_STREAM, 0); if (client < 0) err(EX_OSERR, "socket"); diff --git a/torus.h b/torus.h index 05dd7b7..fe5e6b1 100644 --- a/torus.h +++ b/torus.h @@ -20,7 +20,6 @@ #include #include -#define UNUSED __attribute__((unused)) #define ALIGNED(x) __attribute__((aligned(x))) enum { -- cgit 1.4.1 orm class='right' method='get' action='/src/log/music/new.md'>
Commit message (Expand)Author
2018-04-03Add new Avec le soleil album previewJune McEnroe
2018-04-03Add Julien Baker as recent new musicJune McEnroe
2018-04-03Add recent new musicJune McEnroe