src/rpmfunctions.c: replace usage of heraderLoad() removed since rpm 4.19

This commit is contained in:
Silvan Calarco 2024-05-16 10:38:41 +02:00
parent d820b6787f
commit b357f9c075

View File

@ -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;