mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
unix-caps: switch to unsigned mode for Wconversion
This commit is contained in:
parent
9e10442103
commit
9ed9a04870
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
#if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP)
|
||||
static void
|
||||
_lws_plat_apply_caps(int mode, const cap_value_t *cv, int count)
|
||||
_lws_plat_apply_caps(unsigned int mode, const cap_value_t *cv, int count)
|
||||
{
|
||||
cap_t caps;
|
||||
|
||||
|
@ -41,7 +41,7 @@ _lws_plat_apply_caps(int mode, const cap_value_t *cv, int count)
|
|||
|
||||
caps = cap_get_proc();
|
||||
|
||||
cap_set_flag(caps, mode, count, cv, CAP_SET);
|
||||
cap_set_flag(caps, (cap_flag_t)mode, count, cv, CAP_SET);
|
||||
cap_set_proc(caps);
|
||||
prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
|
||||
cap_free(caps);
|
||||
|
|
Loading…
Add table
Reference in a new issue