diff th_string.h @ 309:2c87abec62db

Fix the function prototype to match declaration.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Feb 2016 21:53:36 +0200
parents 0311f139fcf6
children b2c4b0b4d44f
line wrap: on
line diff
--- a/th_string.h	Mon Feb 22 21:51:56 2016 +0200
+++ b/th_string.h	Mon Feb 22 21:53:36 2016 +0200
@@ -87,7 +87,7 @@
 char    *th_strrcasecmp(char *haystack, const char *needle);
 void    th_strip_ctrlchars(char *str);
 
-int     th_vprintf_do(th_printf_ctx *ctx, int (*vputch)(th_printf_ctx *ctx, const char ch), const char *fmt, va_list ap);
+int     th_vprintf_do(th_printf_ctx *ctx, th_printf_vputch vputch, const char *fmt, va_list ap);
 int     th_vsnprintf(char *buf, size_t size, const char *fmt, va_list ap);
 int     th_snprintf(char *buf, size_t size, const char *fmt, ...);
 int     th_vfprintf(FILE *fh, const char *fmt, va_list ap);