From c6aa36c6c4ca9326b9f49dfb71c3222e8bf2cd69 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 20 Jun 2012 11:47:32 +0200 Subject: s3: Fix const warnings Signed-off-by: Michael Adam --- source3/lib/ctdbd_conn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 8219bd281b..da58259e6b 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -246,7 +246,7 @@ static bool ctdb_req_complete(const uint8_t *buf, size_t available, return False; } - msglen = *((uint32 *)buf); + msglen = *((const uint32 *)buf); DEBUG(11, ("msglen = %d\n", msglen)); @@ -1645,7 +1645,8 @@ static void smbd_ctdb_canonicalize_ip(const struct sockaddr_storage *in, #ifdef HAVE_IPV6 if (in->ss_family == AF_INET6) { const char prefix[12] = { 0,0,0,0,0,0,0,0,0,0,0xff,0xff }; - const struct sockaddr_in6 *in6 = (struct sockaddr_in6 *)in; + const struct sockaddr_in6 *in6 = + (const struct sockaddr_in6 *)in; struct sockaddr_in *out4 = (struct sockaddr_in *)out; if (memcmp(&in6->sin6_addr, prefix, 12) == 0) { memset(out, 0, sizeof(*out)); -- cgit