From: Ruediger Meier Date: Thu, 29 Jun 2017 15:28:01 +0000 (+0200) Subject: setpriv: silence compiler warning X-Git-Tag: v2.31-rc1~229^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d14bcd09e8beb8258e1dba8450ab7406a5278b55;p=thirdparty%2Futil-linux.git 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 --- diff --git a/sys-utils/setpriv.c b/sys-utils/setpriv.c index d0123368e2..19753aab8f 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);