mirror of
https://github.com/sys-fs/tubes
synced 2024-11-24 04:22:48 -05:00
Fix compile time error with last_response
This commit is contained in:
parent
4047fde5a9
commit
fcc5f22522
4
tubes.c
4
tubes.c
@ -23,7 +23,7 @@ static SSL *ssl;
|
|||||||
static char host[128] = "chat.freenode.net";
|
static char host[128] = "chat.freenode.net";
|
||||||
static char port[6] = "6667";
|
static char port[6] = "6667";
|
||||||
static short use_ssl = 0;
|
static short use_ssl = 0;
|
||||||
static unsigned int last_response = time(NULL);
|
static unsigned int last_response;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
tube(char *direction)
|
tube(char *direction)
|
||||||
@ -134,7 +134,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
openlog(argv[0], LOG_PID, LOG_DAEMON);
|
openlog(argv[0], LOG_PID, LOG_DAEMON);
|
||||||
for (status = 0;;) {
|
for (status = 0, last_response = time(NULL);;) {
|
||||||
FD_ZERO(&rd);
|
FD_ZERO(&rd);
|
||||||
maxfd = (out >= sockfd) ? out : sockfd;
|
maxfd = (out >= sockfd) ? out : sockfd;
|
||||||
FD_SET(out, &rd);
|
FD_SET(out, &rd);
|
||||||
|
Loading…
Reference in New Issue
Block a user