Use GNUC format attribute on print functions

Closes #1059
This commit is contained in:
Campbell Barton
2014-07-18 11:25:41 +10:00
committed by TingPing
parent 21c0e47869
commit 93caf4c7b4
5 changed files with 26 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ extern GSList *serv_list;
/* eventually need to keep the tcp_* functions isolated to server.c */
int tcp_send_len (server *serv, char *buf, int len);
int tcp_send (server *serv, char *buf);
void tcp_sendf (server *serv, char *fmt, ...);
void tcp_sendf (server *serv, const char *fmt, ...) G_GNUC_PRINTF (2, 3);
int tcp_send_real (void *ssl, int sok, char *encoding, int using_irc, char *buf, int len);
server *server_new (void);