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://git.ipfire.org/?a=commitdiff_plain;h=8aadf93c9c1ff1a53aafd18d038be0d709b5ebc0;p=thirdparty%2Fkernel%2Flinux.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 72b3d88d35f49..3897d6bf3b292 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;