diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2023-03-15 11:10:10 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2023-03-16 08:20:34 +0200 |
commit | 4a45aad08c1b2172e485d9356753b8ad5b7050a8 (patch) | |
tree | a0d464ebc2388ea2108de5480928cc347ee67a13 | |
parent | 7b982a815e4726dab47b0012006965686eca27bb (diff) | |
download | rpm-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.h | 2 |
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" { |