projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NETFILTER]: add some consts, remove some casts
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
net
/
ipv4
/
netfilter
/
ipt_ecn.c
diff --git
a/net/ipv4/netfilter/ipt_ecn.c
b/net/ipv4/netfilter/ipt_ecn.c
index ba4f5497add3463310a9d44c0da398f9a3f9ada6..3129e31061625a1ebaf899ec1467de567e9aafd1 100644
(file)
--- a/
net/ipv4/netfilter/ipt_ecn.c
+++ b/
net/ipv4/netfilter/ipt_ecn.c
@@
-32,7
+32,8
@@
static inline bool match_tcp(const struct sk_buff *skb,
const struct ipt_ecn_info *einfo,
bool *hotdrop)
{
- struct tcphdr _tcph, *th;
+ struct tcphdr _tcph;
+ const struct tcphdr *th;
/* In practice, TCP match does this, so can't fail. But let's
* be good citizens.