]> Pileus Git - ~andy/fetchmail/commitdiff
Add GCC attributes for printf format checking to SockPrintf (Sunil Shetye).
authorMatthias Andree <matthias.andree@gmx.de>
Thu, 4 Feb 2010 13:51:10 +0000 (13:51 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Thu, 4 Feb 2010 13:51:10 +0000 (13:51 -0000)
svn path=/branches/BRANCH_6-3/; revision=5475

socket.h

index 1ebb2aa0afde15a0ffd999801858f5aefe05fc74..424ca209757c587b7eab119944039a4399a746e5 100644 (file)
--- a/socket.h
+++ b/socket.h
@@ -51,7 +51,9 @@ Send formatted output to the socket (matches interface of fprintf).
 Returns number of bytes successfully written.
 */
 #if defined(HAVE_STDARG_H)
-int SockPrintf(int sock, const char *format, ...) ;
+int SockPrintf(int sock, const char *format, ...)
+    __attribute__ ((format (printf, 2, 3)))
+    ;
 #else
 int SockPrintf();
 #endif