cap_fileargs: silence warnings of unused variable
We still want to fetch the variable just to verify that the interface is right. Reported by: pstef
This commit is contained in:
parent
8e72f458c6
commit
1e9ce60a6d
@ -275,8 +275,7 @@ fileargs_cinitnv(cap_channel_t *cas, nvlist_t *limits)
|
||||
{
|
||||
cap_channel_t *chann;
|
||||
fileargs_t *fa;
|
||||
int serrno, ret;
|
||||
int flags, operations;
|
||||
int flags, ret, serrno;
|
||||
|
||||
assert(cas != NULL);
|
||||
|
||||
@ -294,7 +293,7 @@ fileargs_cinitnv(cap_channel_t *cas, nvlist_t *limits)
|
||||
}
|
||||
|
||||
flags = nvlist_get_number(limits, "flags");
|
||||
operations = nvlist_get_number(limits, "operations");
|
||||
(void)nvlist_get_number(limits, "operations");
|
||||
|
||||
/* Limits are consumed no need to free them. */
|
||||
ret = cap_limit_set(chann, limits);
|
||||
|
Loading…
Reference in New Issue
Block a user