Use proper callback types in psm notify wrapper

This commit is contained in:
Panu Matilainen 2024-04-05 10:07:51 +03:00
parent 1e97f44988
commit 850b30171e
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@
*/ */
#include <rpm/rpmfi.h> #include <rpm/rpmfi.h>
#include <rpm/rpmcallback.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -34,7 +35,7 @@ RPM_GNUC_INTERNAL
int rpmfiArchiveReadToFilePsm(rpmfi fi, FD_t fd, int nodigest, rpmpsm psm); int rpmfiArchiveReadToFilePsm(rpmfi fi, FD_t fd, int nodigest, rpmpsm psm);
RPM_GNUC_INTERNAL RPM_GNUC_INTERNAL
void rpmpsmNotify(rpmpsm psm, int what, rpm_loff_t amount); void rpmpsmNotify(rpmpsm psm, rpmCallbackType what, rpm_loff_t amount);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -683,7 +683,7 @@ static rpmpsm rpmpsmNew(rpmts ts, rpmte te, pkgGoal goal)
return psm; return psm;
} }
void rpmpsmNotify(rpmpsm psm, int what, rpm_loff_t amount) void rpmpsmNotify(rpmpsm psm, rpmCallbackType what, rpm_loff_t amount)
{ {
if (psm) { if (psm) {
int changed = 0; int changed = 0;