diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-03-18 16:23:05 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-03-18 16:23:05 +0000 |
commit | 3a8268bc29c6f637d4ef0c581cd2ee6b3c3a6d8c (patch) | |
tree | 2521f4f0d93a4d3c7f67cf6ae666b2796e40955d /channels/misdn/isdn_lib.h | |
parent | 00222ab483c9780bfc5bce9a07d5cb2fd79f6282 (diff) |
fix up various warnings found via the addition of format string checking... some of these were really, really bad code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn/isdn_lib.h')
-rw-r--r-- | channels/misdn/isdn_lib.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/misdn/isdn_lib.h b/channels/misdn/isdn_lib.h index 85922c630..8e2154d65 100644 --- a/channels/misdn/isdn_lib.h +++ b/channels/misdn/isdn_lib.h @@ -377,12 +377,14 @@ struct misdn_bchannel { enum event_response_e (*cb_event) (enum event_e event, struct misdn_bchannel *bc, void *user_data); -void (*cb_log) (int level, int port, char *tmpl, ...); +void (*cb_log) (int level, int port, char *tmpl, ...) + __attribute__ ((format (printf, 3, 4))); int (*cb_jb_empty)(struct misdn_bchannel *bc, char *buffer, int len); struct misdn_lib_iface { enum event_response_e (*cb_event)(enum event_e event, struct misdn_bchannel *bc, void *user_data); - void (*cb_log)(int level, int port, char *tmpl, ...); + void (*cb_log)(int level, int port, char *tmpl, ...) + __attribute__ ((format (printf, 3, 4))); int (*cb_jb_empty)(struct misdn_bchannel *bc, char *buffer, int len); }; |