IPVS: buffer argument to ip_vs_process_message() should not be const
authorSimon Horman <horms@verge.net.au>
Tue, 9 Nov 2010 00:33:28 +0000 (09:33 +0900)
committerSimon Horman <horms@verge.net.au>
Mon, 15 Nov 2010 23:13:08 +0000 (08:13 +0900)
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>
net/netfilter/ipvs/ip_vs_sync.c

index 72b3d88d35f49ff2f1d3d14bb9065a386c5af341..3897d6bf3b292e3d9b29dc0ec77f69a15c6b17e3 100644 (file)
@@ -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;