Make rpmtdFromStringArray() data argument const afterall
- produces somewhat less warnings as is, a bit surprisingly
This commit is contained in:
parent
05540d121b
commit
2f55856c85
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue