Add formatcheckers to IAPrintf
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 22 Jan 2012 15:35:07 +0000 (16:35 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 22 Jan 2012 15:35:07 +0000 (16:35 +0100)
citadel/modules/imap/imap_tools.h

index e5b785088820b8c79822d8131c3d8118224dacf9..099d9c39b062bdffeca7761a2767001ea1a2a5f0 100644 (file)
@@ -35,7 +35,7 @@ int imap_datecmp(const char *datestr, time_t msgtime);
 
 
 /* Imap Append Printf, send to the outbuffer */
-void IAPrintf(const char *Format, ...);
+void IAPrintf(const char *Format, ...) __attribute__((__format__(__printf__,1,2)));
 
 void iaputs(const char *Str, long Len);
 #define IAPuts(Msg) iaputs(HKEY(Msg))