From 2f55856c85d02a81318065dbb1dd06ff92c9004c Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 17 Jun 2008 16:04:12 +0300 Subject: [PATCH] Make rpmtdFromStringArray() data argument const afterall - produces somewhat less warnings as is, a bit surprisingly --- lib/rpmtd.c | 2 +- lib/rpmtd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rpmtd.c b/lib/rpmtd.c index e5faa2755..761f03b26 100644 --- a/lib/rpmtd.c +++ b/lib/rpmtd.c @@ -326,7 +326,7 @@ int rpmtdFromString(rpmtd td, rpmTag tag, const char *data) return rc; } -int rpmtdFromStringArray(rpmtd td, rpmTag tag, char **data, rpm_count_t count) +int rpmtdFromStringArray(rpmtd td, rpmTag tag, const char **data, rpm_count_t count) { rpmTagType type = rpmTagGetType(tag) & RPM_MASK_TYPE; if (type != RPM_STRING_ARRAY_TYPE || count < 1) diff --git a/lib/rpmtd.h b/lib/rpmtd.h index 6d30c7002..6d844b6d4 100644 --- a/lib/rpmtd.h +++ b/lib/rpmtd.h @@ -271,7 +271,7 @@ int rpmtdFromString(rpmtd td, rpmTag tag, const char *data); * @param count Number of entries * @return 1 on success, 0 on error (eg wrong type) */ -int rpmtdFromStringArray(rpmtd td, rpmTag tag, char **data, rpm_count_t count); +int rpmtdFromStringArray(rpmtd td, rpmTag tag, const char **data, rpm_count_t count); /** \ingroup rpmtd * Construct tag container from ARGV_t array.