diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-02-04 13:51:10 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-02-04 13:51:10 +0000 |
commit | 39d06b03ccd5b4b717d18156e6f4d13927466538 (patch) | |
tree | fb79ab4e32c58f0bbab34d1007f19de9ce4cf8c9 | |
parent | 2d1a98bd4ac65f5696df8d59009375433b49b621 (diff) | |
download | fetchmail-39d06b03ccd5b4b717d18156e6f4d13927466538.tar.gz fetchmail-39d06b03ccd5b4b717d18156e6f4d13927466538.tar.bz2 fetchmail-39d06b03ccd5b4b717d18156e6f4d13927466538.zip |
Add GCC attributes for printf format checking to SockPrintf (Sunil Shetye).
svn path=/branches/BRANCH_6-3/; revision=5475
-rw-r--r-- | socket.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |