Mercurial > pidgin
comparison src/protocols/irc/irc.c @ 3867:43e396e94095
[gaim-migrate @ 4019]
compile cleanups by nathan
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Sun, 03 Nov 2002 07:36:09 +0000 |
parents | ed3e19143373 |
children | 9ced82507a79 |
comparison
equal
deleted
inserted
replaced
3866:994b5c4d15dd | 3867:43e396e94095 |
---|---|
34 #include <fcntl.h> | 34 #include <fcntl.h> |
35 #include <errno.h> | 35 #include <errno.h> |
36 #include <string.h> | 36 #include <string.h> |
37 #include <stdlib.h> | 37 #include <stdlib.h> |
38 #include <stdio.h> | 38 #include <stdio.h> |
39 #include <sys/time.h> | |
39 #include <time.h> | 40 #include <time.h> |
40 #include <sys/stat.h> | 41 #include <sys/stat.h> |
41 #include <ctype.h> | 42 #include <ctype.h> |
42 #include "multi.h" | 43 #include "multi.h" |
43 #include "prpl.h" | 44 #include "prpl.h" |
1569 g_free(tmp); | 1570 g_free(tmp); |
1570 break; | 1571 break; |
1571 } | 1572 } |
1572 r = r->next; | 1573 r = r->next; |
1573 } | 1574 } |
1575 return TRUE; | |
1574 } | 1576 } |
1575 | 1577 |
1576 static void | 1578 static void |
1577 irc_callback(gpointer data, gint source, | 1579 irc_callback(gpointer data, gint source, |
1578 GaimInputCondition condition) | 1580 GaimInputCondition condition) |
2517 static void | 2519 static void |
2518 irc_ctcp_ping(struct gaim_connection *gc, char *who) | 2520 irc_ctcp_ping(struct gaim_connection *gc, char *who) |
2519 { | 2521 { |
2520 char buf[IRC_BUF_LEN]; | 2522 char buf[IRC_BUF_LEN]; |
2521 | 2523 |
2522 g_snprintf (buf, sizeof(buf), "\001PING %ul\001", time(NULL)); | 2524 g_snprintf (buf, sizeof(buf), "\001PING %ld\001", time(NULL)); |
2523 irc_send_privmsg(gc, who, buf, FALSE); | 2525 irc_send_privmsg(gc, who, buf, FALSE); |
2524 } | 2526 } |
2525 | 2527 |
2526 static void | 2528 static void |
2527 irc_send_notice(struct gaim_connection *gc, char *who, char *what) | 2529 irc_send_notice(struct gaim_connection *gc, char *who, char *what) |