Use GNUC format attribute on print functions

Closes #1059
This commit is contained in:
Campbell Barton authored and TingPing committed 2014-07-18 07:09:07 -04:00
1 parent 21c0e47869
commit 93caf4c7b4
5 files changed
+26 -10

No files matched your search

+2 -2
View File
@@ -927,7 +927,7 @@ PrintText (session *sess, char *text)
}
void
PrintTextf (session *sess, char *format, ...)
PrintTextf (session *sess, const char *format, ...)
{
va_list args;
char *buf;
@@ -941,7 +941,7 @@ PrintTextf (session *sess, char *format, ...)
}
void
PrintTextTimeStampf (session *sess, time_t timestamp, char *format, ...)
PrintTextTimeStampf (session *sess, time_t timestamp, const char *format, ...)
{
va_list args;
char *buf;