setpriv: silence compiler warning
This got lost in 30129e2f
sys-utils/setpriv.c:182:32: warning: implicit conversion from enumeration type
'enum cap_type' to different enumeration type 'capng_type_t'
[-Wenum-conversion]
return capng_have_capability(which, i);
~~~~~~~~~~~~~~~~~~~~~ ^~~~~
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
f45f3ec34a
commit
d14bcd09e8
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ static int has_cap(enum cap_type which, unsigned int i)
|
|||
case CAP_TYPE_BOUNDING:
|
||||
case CAP_TYPE_INHERITABLE:
|
||||
case CAP_TYPE_PERMITTED:
|
||||
return capng_have_capability(which, i);
|
||||
return capng_have_capability((capng_type_t)which, i);
|
||||
case CAP_TYPE_AMBIENT:
|
||||
return prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET,
|
||||
(unsigned long) i, 0UL, 0UL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue