From f21c5b6b2788d1ba2073cb4066eedee0de1b249e Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sun, 26 Jul 2009 16:03:37 +0200 Subject: Improve message callback API Instead of passing a pointer to a va_list, pass the va_list itself. Additionally, use const char for the format string and use names in the prototype that describe the arguments' meaning. --- test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test.c') diff --git a/test/test.c b/test/test.c index ac4bfe6..86fa342 100644 --- a/test/test.c +++ b/test/test.c @@ -12,12 +12,12 @@ typedef struct image_s { ass_library_t *ass_library; ass_renderer_t *ass_renderer; -void msg_callback(int level, char *fmt, va_list * va, void *data) +void msg_callback(int level, const char *fmt, va_list va, void *data) { if (level > 6) return; printf("libass: "); - vprintf(fmt, *va); + vprintf(fmt, va); printf("\n"); } -- cgit v1.2.3