From fcc5f22522e7f2b90211ffe393f077540d0641e5 Mon Sep 17 00:00:00 2001 From: Thomas Mannay Date: Tue, 21 Mar 2017 23:50:10 +0000 Subject: [PATCH] Fix compile time error with last_response --- tubes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubes.c b/tubes.c index c6cc127..0446d78 100644 --- a/tubes.c +++ b/tubes.c @@ -23,7 +23,7 @@ static SSL *ssl; static char host[128] = "chat.freenode.net"; static char port[6] = "6667"; static short use_ssl = 0; -static unsigned int last_response = time(NULL); +static unsigned int last_response; static int tube(char *direction) @@ -134,7 +134,7 @@ main(int argc, char **argv) } openlog(argv[0], LOG_PID, LOG_DAEMON); - for (status = 0;;) { + for (status = 0, last_response = time(NULL);;) { FD_ZERO(&rd); maxfd = (out >= sockfd) ? out : sockfd; FD_SET(out, &rd);