mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
use gint64 define
This commit is contained in:
parent
d9b181e4a1
commit
9b73d152fe
@ -128,7 +128,10 @@ static void ctcp_ping_reply(IRC_SERVER_REC *server, const char *data,
|
|||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
if (sscanf(data, "%ld %ld", &tv, &tv2) < 1) {
|
if (sscanf(data,
|
||||||
|
"%" G_GINT64_FORMAT " "
|
||||||
|
"%" G_GINT64_FORMAT,
|
||||||
|
&tv, &tv2) < 1) {
|
||||||
char *tmp = g_strconcat("PING ", data, NULL);
|
char *tmp = g_strconcat("PING ", data, NULL);
|
||||||
ctcp_default_reply(server, tmp, nick, addr, target);
|
ctcp_default_reply(server, tmp, nick, addr, target);
|
||||||
g_free(tmp);
|
g_free(tmp);
|
||||||
|
@ -544,7 +544,10 @@ static void cmd_ping(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item
|
|||||||
|
|
||||||
tv = g_get_real_time();
|
tv = g_get_real_time();
|
||||||
|
|
||||||
str = g_strdup_printf("%s PING %ld %ld", data, tv / G_TIME_SPAN_SECOND, tv % G_TIME_SPAN_SECOND);
|
str = g_strdup_printf("%s PING "
|
||||||
|
"%" G_GINT64_FORMAT " "
|
||||||
|
"%" G_GINT64_FORMAT,
|
||||||
|
data, tv / G_TIME_SPAN_SECOND, tv % G_TIME_SPAN_SECOND);
|
||||||
signal_emit("command ctcp", 3, str, server, item);
|
signal_emit("command ctcp", 3, str, server, item);
|
||||||
g_free(str);
|
g_free(str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user