mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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
This commit is contained in:
parent
cc10292c21
commit
e7b3362bd5
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user