projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netfilter: Fix switch statement warnings with recent gcc.
[deliverable/linux.git]
/
net
/
netfilter
/
nft_compat.c
diff --git
a/net/netfilter/nft_compat.c
b/net/netfilter/nft_compat.c
index 589b8487cd0840de2bafd01304242265b16ea11f..0d137c1ac889ea2cd8f74aaf71238773855198c0 100644
(file)
--- a/
net/netfilter/nft_compat.c
+++ b/
net/netfilter/nft_compat.c
@@
-321,11
+321,11
@@
static void nft_match_eval(const struct nft_expr *expr,
return;
}
- switch
(ret
) {
- case
true
:
+ switch
(ret ? 1 : 0
) {
+ case
1
:
data[NFT_REG_VERDICT].verdict = NFT_CONTINUE;
break;
- case
false
:
+ case
0
:
data[NFT_REG_VERDICT].verdict = NFT_BREAK;
break;
}
This page took
0.0296 seconds
and
5
git commands to generate.