Make rpmtdFromStringArray() data argument const afterall

- produces somewhat less warnings as is, a bit surprisingly
This commit is contained in:
Panu Matilainen 2008-06-17 16:04:12 +03:00
parent 05540d121b
commit 2f55856c85
2 changed files with 2 additions and 2 deletions

View File

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

View File

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