From b357f9c075f63999d323f1def5a6d99a5bd827a6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 16 May 2024 10:38:41 +0200 Subject: [PATCH] src/rpmfunctions.c: replace usage of heraderLoad() removed since rpm 4.19 --- src/rpmfunctions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpmfunctions.c b/src/rpmfunctions.c index 0833585..3c5c345 100644 --- a/src/rpmfunctions.c +++ b/src/rpmfunctions.c @@ -85,7 +85,7 @@ unsigned int checkVersionWithFlags(const char* cmp1, uint_32 flags, const char* /* * get header from a file descriptor of a YUM compressed header file */ int -getHeader(rpmts* ts, char *headerFile, Header * h) +getHeader(rpmts* ts, char *headerFile, Header *h) { char buffer[HEADERS_BUFFER_SIZE]; int len; @@ -107,7 +107,7 @@ getHeader(rpmts* ts, char *headerFile, Header * h) return 2; } - *h = headerLoad(buffer); + *h = headerImport(buffer, sizeof(Header), 0); } else { FD_t fd;