From: Guillem Jover Date: Wed, 2 Jan 2008 04:40:27 +0000 (+0200) Subject: Add missing PRINTFFORMAT attribute to few function declarations X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c04a83af4a07f5efa7bd56c82183f81b75fd5c7c;p=dpkg Add missing PRINTFFORMAT attribute to few function declarations --- diff --git a/ChangeLog b/ChangeLog index 90e093af..7ae840d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2008-01-02 Guillem Jover + + * lib/dpkg.h (warningf): Add PRINTFFORMAT attribute. + (buffer_copy_setup_PtrInt): Likewise. + (buffer_copy_setup_PtrPtr): Likewise. + (buffer_copy_setup_IntPtr): Likewise. + (buffer_copy_setup_IntInt): Likewise. + (decompress_cat): Likewise. + (compress_cat): Likewise. + * lib/dpkg-db.h (log_message): Likewise. + 2008-01-02 Guillem Jover * lib/dpkg.h (NONRETURNPRINTFFORMAT): Remove macro. diff --git a/lib/dpkg-db.h b/lib/dpkg-db.h index b6f43afb..af7ed0b8 100644 --- a/lib/dpkg-db.h +++ b/lib/dpkg-db.h @@ -175,7 +175,7 @@ void modstatdb_shutdown(void); extern char *statusfile, *availablefile; /* initialised by modstatdb_init */ extern const char *log_file; -void log_message(const char *fmt, ...); +void log_message(const char *fmt, ...) PRINTFFORMAT(1, 2); /*** from database.c ***/ diff --git a/lib/dpkg.h b/lib/dpkg.h index d932f1aa..9a0808d8 100644 --- a/lib/dpkg.h +++ b/lib/dpkg.h @@ -215,7 +215,7 @@ void ohshite(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2); void ohshitvb(struct varbuf*) NONRETURNING; void badusage(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2); void werr(const char *what) NONRETURNING; -void warningf(const char *fmt, ...); +void warningf(const char *fmt, ...) PRINTFFORMAT(1, 2); /*** from mlib.c ***/ @@ -341,16 +341,16 @@ struct buffer_data { off_t buffer_copy_setup_PtrInt(void *p, int typeIn, void *procIn, int i, int typeOut, void *procOut, - off_t limit, const char *desc, ...); + off_t limit, const char *desc, ...) PRINTFFORMAT(8, 9); off_t buffer_copy_setup_PtrPtr(void *p1, int typeIn, void *procIn, void *p2, int typeOut, void *procOut, - off_t limit, const char *desc, ...); + off_t limit, const char *desc, ...) PRINTFFORMAT(8, 9); off_t buffer_copy_setup_IntPtr(int i, int typeIn, void *procIn, void *p, int typeOut, void *procOut, - off_t limit, const char *desc, ...); + off_t limit, const char *desc, ...) PRINTFFORMAT(8, 9); off_t buffer_copy_setup_IntInt(int i1, int typeIn, void *procIn, int i2, int typeOut, void *procOut, - off_t limit, const char *desc, ...); + off_t limit, const char *desc, ...) PRINTFFORMAT(8, 9); off_t buffer_copy_setup(buffer_arg argIn, int typeIn, void *procIn, buffer_arg argOut, int typeOut, void *procOut, off_t limit, const char *desc); @@ -379,8 +379,11 @@ enum compress_type { compress_type_lzma, }; -void decompress_cat(enum compress_type type, int fd_in, int fd_out, char *desc, ...) NONRETURNING; -void compress_cat(enum compress_type type, int fd_in, int fd_out, const char *compression, char *desc, ...) NONRETURNING; +void decompress_cat(enum compress_type type, int fd_in, int fd_out, + char *desc, ...) NONRETURNING PRINTFFORMAT(4, 5); +void compress_cat(enum compress_type type, int fd_in, int fd_out, + const char *compression, char *desc, ...) + NONRETURNING PRINTFFORMAT(5, 6); /*** from compat.c ***/