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: MMI-PSA29.97-13-9~20520^2~510^2~26^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8aadf93c9c1ff1a53aafd18d038be0d709b5ebc0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 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, * 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;