summaryrefslogtreecommitdiffstats
path: root/sys-utils/setpriv.c
diff options
context:
space:
mode:
authorRuediger Meier2017-06-29 17:28:01 +0200
committerRuediger Meier2017-07-04 07:28:50 +0200
commitd14bcd09e8beb8258e1dba8450ab7406a5278b55 (patch)
treea57cbf162d388922bbecc1011e840dcc7f7ff256 /sys-utils/setpriv.c
parentmisc: consolidate macro style USAGE_HELP_OPTIONS (diff)
downloadkernel-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.c2
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);