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

@@ -273,7 +273,7 @@ tcp_send (server *serv, char *buf)
}*/
void
tcp_sendf (server *serv, char *fmt, ...)
tcp_sendf (server *serv, const char *fmt, ...)
{
va_list args;
/* keep this buffer in BSS. Converting UTF-8 to ISO-8859-x might make the