Commit 7f43e272 authored by Ingo Molnar's avatar Ingo Molnar Committed by David S. Miller

[TCP]: Make tcp_sk() do type checking.

parent a632875f
......@@ -386,7 +386,10 @@ struct tcp_sock {
struct tcp_opt tcp;
};
#define tcp_sk(__sk) (&((struct tcp_sock *)__sk)->tcp)
static inline struct tcp_opt * tcp_sk(const struct sock *__sk)
{
return &((struct tcp_sock *)__sk)->tcp;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment