diff options
author | Ruediger Meier | 2017-06-29 17:28:01 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-07-04 07:28:50 +0200 |
commit | d14bcd09e8beb8258e1dba8450ab7406a5278b55 (patch) | |
tree | a57cbf162d388922bbecc1011e840dcc7f7ff256 /sys-utils/setpriv.c | |
parent | misc: consolidate macro style USAGE_HELP_OPTIONS (diff) | |
download | kernel-qcow2-util-linux-d14bcd09e8beb8258e1dba8450ab7406a5278b55.tar.gz kernel-qcow2-util-linux-d14bcd09e8beb8258e1dba8450ab7406a5278b55.tar.xz kernel-qcow2-util-linux-d14bcd09e8beb8258e1dba8450ab7406a5278b55.zip |
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>
Diffstat (limited to 'sys-utils/setpriv.c')
-rw-r--r-- | sys-utils/setpriv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/setpriv.c b/sys-utils/setpriv.c index d0123368e..19753aab8 100644 --- a/sys-utils/setpriv.c +++ b/sys-utils/setpriv.c @@ -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); |