commit 3b279812142c4be3723cbdac66dadca3db56dac6
parent d4460d363db529e7f06a2ceae1309d9b2d417699
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 30 Oct 2009 19:34:26 +0000
fixing compiler warnings
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/plugins/rpm/rpmextractor.c b/src/plugins/rpm/rpmextractor.c
@@ -23,6 +23,7 @@
#include <stdint.h>
#include <rpm/rpmlib.h>
#include <rpm/rpmts.h>
+#include <rpm/rpmlog.h>
#include <pthread.h>
#include <sys/types.h>
#include <signal.h>
@@ -104,8 +105,9 @@ static Matches tests[] = {
{0, 0},
};
-static void discardCB() {
+static int discardCB(rpmlogRec rec, void *ctx) {
/* do nothing! */
+ return 0;
}
/* mimetype = application/x-rpm */
@@ -144,7 +146,7 @@ libextractor_rpm_extract (const char *filename,
CLOSE(parg.pi[1]);
return prev;
}
- rpmlogSetCallback(&discardCB);
+ rpmlogSetCallback(&discardCB, NULL);
fdi = fdDup(parg.pi[0]);
ts = rpmtsCreate();
rc = rpmReadPackageFile (ts, fdi, "GNU libextractor", &hdr);
@@ -197,6 +199,8 @@ libextractor_rpm_extract (const char *filename,
}
break;
}
+ default:
+ break;
}
}
i++;