From 6a1dfdf2928dbdecc5b0f2f8a7648e7f5ea84341 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2007 18:59:02 -0400 Subject: Set the correct type on the log callback function Somehow missed this earlier when changing everything to types. unsigned short -> pmloglevel_t wherever necessary. Signed-off-by: Dan McGee --- src/util/testpkg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/testpkg.c') diff --git a/src/util/testpkg.c b/src/util/testpkg.c index a64e6b34..66569f1e 100644 --- a/src/util/testpkg.c +++ b/src/util/testpkg.c @@ -28,12 +28,13 @@ #include -void output_cb(unsigned short level, char *msg) +void output_cb(pmloglevel_t level, char *msg) { if(strlen(msg)) { switch(level) { case PM_LOG_ERROR: printf("error: "); break; case PM_LOG_WARNING: printf("warning: "); break; + default: break; } puts(msg); } -- cgit v1.2.3