summaryrefslogtreecommitdiffstats
path: root/common/quic.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-02-10 14:30:56 +0000
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:30:24 +0100
commit985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91 (patch)
treee03feb7a4ef36761c2c03b4f39ee900d0f02c8fa /common/quic.h
parent9f7d6175e7f8af3cb8b3556affe04d49d35be663 (diff)
downloadspice-common-985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91.tar.gz
spice-common-985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91.tar.xz
spice-common-985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91.zip
Add printf format annotations to all '...' functions
To allow the compile to detect incorrect printf formats, any var-args function should have a format annotation * common/macros.h: Helper to define ATTR_PRINTF for code which can't depend on glib * common/canvas_base.c, common/lz.h, common/macros.h: Annotate some var-args methods
Diffstat (limited to 'common/quic.h')
-rw-r--r--common/quic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/quic.h b/common/quic.h
index b533f39..ee5fb17 100644
--- a/common/quic.h
+++ b/common/quic.h
@@ -41,9 +41,9 @@ typedef void *QuicContext;
typedef struct QuicUsrContext QuicUsrContext;
struct QuicUsrContext {
- ATTR_PRINTF(2, 3) void (*error)(QuicUsrContext *usr, const char *fmt, ...);
- ATTR_PRINTF(2, 3) void (*warn)(QuicUsrContext *usr, const char *fmt, ...);
- ATTR_PRINTF(2, 3) void (*info)(QuicUsrContext *usr, const char *fmt, ...);
+ SPICE_ATTR_PRINTF(2, 3) void (*error)(QuicUsrContext *usr, const char *fmt, ...);
+ SPICE_ATTR_PRINTF(2, 3) void (*warn)(QuicUsrContext *usr, const char *fmt, ...);
+ SPICE_ATTR_PRINTF(2, 3) void (*info)(QuicUsrContext *usr, const char *fmt, ...);
void *(*malloc)(QuicUsrContext *usr, int size);
void (*free)(QuicUsrContext *usr, void *ptr);
int (*more_space)(QuicUsrContext *usr, uint32_t **io_ptr, int rows_completed);