From: Simon Horman Date: Tue, 9 Nov 2010 00:33:28 +0000 (+0900) Subject: IPVS: buffer argument to ip_vs_process_message() should not be const X-Git-Tag: v2.6.39-rc1~468^2~510^2~26^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8aadf93c9c1ff1a53aafd18d038be0d709b5ebc0;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Signed-off-by: Simon Horman --- diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index 72b3d88..3897d6b 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, * Process received multicast message and create the corresponding * ip_vs_conn entries. */ -static void ip_vs_process_message(const char *buffer, const size_t buflen) +static void ip_vs_process_message(char *buffer, const size_t buflen) { struct ip_vs_sync_mesg *m = (struct ip_vs_sync_mesg *)buffer; struct ip_vs_sync_conn *s;