summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2023-03-15 11:10:10 +0200
committerPanu Matilainen <pmatilai@redhat.com>2023-03-16 08:20:34 +0200
commit4a45aad08c1b2172e485d9356753b8ad5b7050a8 (patch)
treea0d464ebc2388ea2108de5480928cc347ee67a13
parent7b982a815e4726dab47b0012006965686eca27bb (diff)
downloadrpm-4a45aad08c1b2172e485d9356753b8ad5b7050a8.tar.gz
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.
-rw-r--r--lib/rpmscript.h2
1 files changed, 1 insertions, 1 deletions
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" {