aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2010-11-08 19:33:28 -0500
committerSimon Horman <horms@verge.net.au>2010-11-15 18:13:08 -0500
commit8aadf93c9c1ff1a53aafd18d038be0d709b5ebc0 (patch)
tree95fce415f48f4df24656ed47a97def2da858a02a
parent7ae246a15a5c9d26cfb572d36794325db0400b18 (diff)
IPVS: buffer argument to ip_vs_process_message() should not be const
It is assigned to a non-const variable and its contents are modified. Acked-by: Hans Schillstrom <hans.schillstrom@ericsson.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--net/netfilter/ipvs/ip_vs_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
index 72b3d88d35f4..3897d6bf3b29 100644
--- a/net/netfilter/ipvs/ip_vs_sync.c
+++ b/net/netfilter/ipvs/ip_vs_sync.c
@@ -303,7 +303,7 @@ ip_vs_conn_fill_param_sync(int af, int protocol,
303 * Process received multicast message and create the corresponding 303 * Process received multicast message and create the corresponding
304 * ip_vs_conn entries. 304 * ip_vs_conn entries.
305 */ 305 */
306static void ip_vs_process_message(const char *buffer, const size_t buflen) 306static void ip_vs_process_message(char *buffer, const size_t buflen)
307{ 307{
308 struct ip_vs_sync_mesg *m = (struct ip_vs_sync_mesg *)buffer; 308 struct ip_vs_sync_mesg *m = (struct ip_vs_sync_mesg *)buffer;
309 struct ip_vs_sync_conn *s; 309 struct ip_vs_sync_conn *s;