summary refs log tree commit diff stats
path: root/src/common/text.h
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-07-18 11:25:41 +1000
committerTingPing <tingping@tingping.se>2014-07-18 07:09:07 -0400
commit93caf4c7b4e6b7d1f3424263df8ac97397f48d13 (patch)
tree9a554e04c11c654f1ef05f47b0a1a059c1e16742 /src/common/text.h
parent21c0e478690f36322fd4f40c031a4407c8485879 (diff)
Use GNUC format attribute on print functions
Closes #1059
Diffstat (limited to 'src/common/text.h')
-rw-r--r--src/common/text.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/text.h b/src/common/text.h
index a9fd9d4e..9a385167 100644
--- a/src/common/text.h
+++ b/src/common/text.h
@@ -43,8 +43,8 @@ void scrollback_load (session *sess);
 int text_word_check (char *word, int len);
 void PrintText (session *sess, char *text);
 void PrintTextTimeStamp (session *sess, char *text, time_t timestamp);
-void PrintTextf (session *sess, char *format, ...);
-void PrintTextTimeStampf (session *sess, time_t timestamp, char *format, ...);
+void PrintTextf (session *sess, const char *format, ...) G_GNUC_PRINTF (2, 3);
+void PrintTextTimeStampf (session *sess, time_t timestamp, const char *format, ...) G_GNUC_PRINTF (3, 4);
 void log_close (session *sess);
 void log_open_or_close (session *sess);
 void load_text_events (void);