dect
/
libdect
Archived
13
0
Fork 0

debug: make debug hook signature vprintf() compatible

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2009-11-13 02:30:52 +01:00
parent 5c179a7548
commit 5fba0356bb
2 changed files with 3 additions and 3 deletions

View File

@ -132,6 +132,6 @@ extern void dect_close_handle(struct dect_handle *dh);
extern int dect_init(struct dect_handle *dh);
extern void dect_set_debug_hook(void (*fn)(const char *fmt, va_list ap));
extern void dect_set_debug_hook(int (*fn)(const char *fmt, va_list ap));
#endif /* _LIBDECT_DECT_LIBDECT_H */

View File

@ -18,9 +18,9 @@
#include <utils.h>
#include <lce.h>
static void __fmtstring(1, 0) (*debug_hook)(const char *fmt, va_list ap);
static int __fmtstring(1, 0) (*debug_hook)(const char *fmt, va_list ap);
void dect_set_debug_hook(void (*fn)(const char *fmt, va_list ap))
void dect_set_debug_hook(int (*fn)(const char *fmt, va_list ap))
{
debug_hook = fn;
}