diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-04-01 08:16:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-04-01 08:16:29 +0000 |
commit | d988048914d0f54c06c3bf86ab97a4c14b9e78fe (patch) | |
tree | bf5d8b17652a97e6522d75b0ffaf874403010146 /fetchmail.h | |
parent | 71bc7ce6858ee50574dc574a948ea24b5d2d0bfc (diff) | |
download | fetchmail-d988048914d0f54c06c3bf86ab97a4c14b9e78fe.tar.gz fetchmail-d988048914d0f54c06c3bf86ab97a4c14b9e78fe.tar.bz2 fetchmail-d988048914d0f54c06c3bf86ab97a4c14b9e78fe.zip |
Other routine fixups.
svn path=/trunk/; revision=3604
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/fetchmail.h b/fetchmail.h index bacad070..a3bf4913 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -391,13 +391,26 @@ extern char *sdps_envto; /* prototypes for globally callable functions */ +/* from /usr/include/sys/cdefs.h */ +#if !defined __GNUC__ || __GNUC__ < 2 +# define __attribute__(xyz)» /* Ignore. */ +#endif + /* error.c: Error reporting */ #if defined(HAVE_STDARG_H) void report_init(int foreground); -void report (FILE *fp, const char *format, ...); -void report_build (FILE *fp, const char *format, ...); -void report_complete (FILE *fp, const char *format, ...); -void report_at_line (FILE *fp, int, const char *, unsigned int, const char *, ...); +void report (FILE *fp, const char *format, ...) + __attribute__ ((format (printf, 2, 3))) + ; +void report_build (FILE *fp, const char *format, ...) + __attribute__ ((format (printf, 2, 3))) + ; +void report_complete (FILE *fp, const char *format, ...) + __attribute__ ((format (printf, 2, 3))) + ; +void report_at_line (FILE *fp, int, const char *, unsigned int, const char *, ...) + __attribute__ ((format (printf, 5, 6))) + ; #else void report (); void report_build (); @@ -418,9 +431,13 @@ int readheaders(int sock, int num); int readbody(int sock, struct query *ctl, flag forward, int len); #if defined(HAVE_STDARG_H) -void gen_send(int sock, const char *, ... ); +void gen_send(int sock, const char *, ... ) + __attribute__ ((format (printf, 2, 3))) + ; int gen_recv(int sock, char *buf, int size); -int gen_transact(int sock, const char *, ... ); +int gen_transact(int sock, const char *, ... ) + __attribute__ ((format (printf, 2, 3))) + ; #else void gen_send(); int gen_recv(); @@ -470,7 +487,9 @@ void release_sink(struct query *); int close_sink(struct query *, struct msgblk *, flag); int open_warning_by_mail(struct query *, struct msgblk *); #if defined(HAVE_STDARG_H) -void stuff_warning(struct query *, const char *, ... ); +void stuff_warning(struct query *, const char *, ... ) + __attribute__ ((format (printf, 2, 3))) + ; #else void stuff_warning(); #endif |