]> git.ipfire.org Git - people/ms/dma.git/commitdiff
mark printf-alike functions
authorSimon Schubert <2@0x2c.org>
Mon, 2 Jan 2012 19:48:50 +0000 (20:48 +0100)
committerSimon Schubert <2@0x2c.org>
Mon, 2 Jan 2012 19:48:50 +0000 (20:48 +0100)
Submitted-by: Sascha Wildner <saw@online.de>
dma.h

diff --git a/dma.h b/dma.h
index 64ad9e6fad238344ea97a9043d43403d233e9d63..1dae38cb20d4885b2de25577b0153dc9fe63aca1 100644 (file)
--- a/dma.h
+++ b/dma.h
@@ -183,7 +183,7 @@ int dns_get_mx_list(const char *, int, struct mx_hostentry **, int);
 /* net.c */
 char *ssl_errstr(void);
 int read_remote(int, int, char *);
-ssize_t send_remote_command(int, const char*, ...);
+ssize_t send_remote_command(int, const char*, ...)  __attribute__((__nonnull__(2), __format__ (__printf__, 2, 3)));
 int deliver_remote(struct qitem *);
 
 /* base64.c */
@@ -213,9 +213,9 @@ int readmail(struct queue *, int, int);
 
 /* util.c */
 const char *hostname(void);
-void setlogident(const char *, ...);
-void errlog(int, const char *, ...);
-void errlogx(int, const char *, ...);
+void setlogident(const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
+void errlog(int, const char *, ...) __attribute__((__format__ (__printf__, 2, 3)));
+void errlogx(int, const char *, ...) __attribute__((__format__ (__printf__, 2, 3)));
 void set_username(void);
 void deltmp(void);
 int do_timeout(int, int);