From 4a45aad08c1b2172e485d9356753b8ad5b7050a8 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 15 Mar 2023 11:10:10 +0200 Subject: Fix nextfilefunc return type to const char * as per the expectation The returned pointers are const and must not be freed, only we were casting away that difference at the one place it was used in. --- lib/rpmscript.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rpmscript.h b/lib/rpmscript.h index f263c8cb4..0d08c8815 100644 --- a/lib/rpmscript.h +++ b/lib/rpmscript.h @@ -44,7 +44,7 @@ typedef rpmFlags rpmscriptFlags; typedef struct rpmScript_s * rpmScript; -typedef char *(*nextfilefunc)(void *); +typedef const char *(*nextfilefunc)(void *); #ifdef __cplusplus extern "C" { -- cgit v1.2.1