Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-26 18:59:02 -0400
committerDan McGee <dan@archlinux.org>2007-04-26 18:59:02 -0400
commit6a1dfdf2928dbdecc5b0f2f8a7648e7f5ea84341 (patch)
tree6c3a5869854cc65310b5b05b365bf0c9667549ef /src/util
parent7bbcaaaae90770247f72cf213498b6934d949023 (diff)
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 <dan@archlinux.org>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/testpkg.c3
1 files changed, 2 insertions, 1 deletions
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 <alpm.h>
-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);
}