diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2005-02-04 22:28:08 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-02-04 22:28:08 +0000 |
commit | e7b3362bd57d767aa520b3278e3315b38791cbe9 (patch) | |
tree | 6b568e5035be144c1587ce3d98840c8fbbe3901d | |
parent | cc10292c216bae22298c205d14a3817381e71e2b (diff) | |
download | irssi-e7b3362bd57d767aa520b3278e3315b38791cbe9.zip |
Compile fix: make it c99 again, by Timothy Hatcher (Bug 184)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3705 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/irc/core/irc-servers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 6a27437f..269720f3 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -103,6 +103,7 @@ static void server_init(IRC_SERVER_REC *server) { IRC_SERVER_CONNECT_REC *conn; char hostname[100], *address, *ptr, *username, *cmd; + GTimeVal now; g_return_if_fail(server != NULL); @@ -191,7 +192,6 @@ static void server_init(IRC_SERVER_REC *server) /* prevent the queue from sending too early, we have a max cut off of 120 secs */ /* this will reset to 1 sec after we get the 001 event */ - GTimeVal now; g_get_current_time(&now); memcpy(&((IRC_SERVER_REC *)server)->wait_cmd, &now, sizeof(GTimeVal)); ((IRC_SERVER_REC *)server)->wait_cmd.tv_sec += 120; @@ -527,6 +527,7 @@ static int sig_set_user_mode(IRC_SERVER_REC *server) static void event_connected(IRC_SERVER_REC *server, const char *data, const char *from) { char *params, *nick; + GTimeVal now; g_return_if_fail(server != NULL); @@ -549,7 +550,6 @@ static void event_connected(IRC_SERVER_REC *server, const char *data, const char server->real_connect_time = time(NULL); /* let the queue send now that we are identified */ - GTimeVal now; g_get_current_time(&now); memcpy(&server->wait_cmd, &now, sizeof(GTimeVal)); |