Use correct type in rpmSanitizeDSFlags and rpmParseDSFlags
This commit is contained in:
parent
e3e5ba7603
commit
4e8218f066
|
@ -143,7 +143,7 @@ rpmRC parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTagVal tagN,
|
|||
|
||||
/* Check for possible logical operator */
|
||||
if (ve > v) {
|
||||
rpmFlags sense = rpmParseDSFlags(v, ve - v);
|
||||
rpmsenseFlags sense = rpmParseDSFlags(v, ve - v);
|
||||
if (sense) {
|
||||
Flags |= sense;
|
||||
|
||||
|
|
|
@ -1244,7 +1244,7 @@ rpmstrPool rpmdsPool(rpmds ds)
|
|||
return (ds != NULL) ? ds->pool : NULL;
|
||||
}
|
||||
|
||||
rpmFlags rpmSanitizeDSFlags(rpmTagVal tagN, rpmFlags Flags)
|
||||
rpmsenseFlags rpmSanitizeDSFlags(rpmTagVal tagN, rpmsenseFlags Flags)
|
||||
{
|
||||
rpmsenseFlags extra = RPMSENSE_ANY;
|
||||
switch (tagN) {
|
||||
|
@ -1285,7 +1285,7 @@ const char * token;
|
|||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
rpmFlags rpmParseDSFlags(const char *str, size_t len)
|
||||
rpmsenseFlags rpmParseDSFlags(const char *str, size_t len)
|
||||
{
|
||||
const struct ReqComp *rc;
|
||||
for (rc = ReqComparisons; rc->token != NULL; rc++)
|
||||
|
|
|
@ -93,7 +93,7 @@ typedef rpmFlags rpmsenseFlags;
|
|||
* @param flags flags
|
||||
* @return flags filtered to allowed bits
|
||||
*/
|
||||
rpmFlags rpmSanitizeDSFlags(rpmTagVal tagN, rpmFlags Flags);
|
||||
rpmsenseFlags rpmSanitizeDSFlags(rpmTagVal tagN, rpmsenseFlags Flags);
|
||||
|
||||
/** \ingroup rpmds
|
||||
* Convert a string to the sense flags
|
||||
|
@ -101,7 +101,7 @@ rpmFlags rpmSanitizeDSFlags(rpmTagVal tagN, rpmFlags Flags);
|
|||
* @param len length of the string
|
||||
* @return flags, zero for unknwon relations
|
||||
*/
|
||||
rpmFlags rpmParseDSFlags(const char *str, size_t len);
|
||||
rpmsenseFlags rpmParseDSFlags(const char *str, size_t len);
|
||||
|
||||
/** \ingroup rpmds
|
||||
* Reference a dependency set instance.
|
||||
|
|
Loading…
Reference in New Issue