diff options
author | Volker Lendecke <vl@samba.org> | 2012-06-20 11:47:32 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-21 14:08:38 +0200 |
commit | c6aa36c6c4ca9326b9f49dfb71c3222e8bf2cd69 (patch) | |
tree | 360083bb7a6fa336c8c3390927670f22a57fad91 /source3/lib/ctdbd_conn.c | |
parent | 33ff033204c29adb669b3c93536fe4712428ec88 (diff) | |
download | samba-c6aa36c6c4ca9326b9f49dfb71c3222e8bf2cd69.tar.gz samba-c6aa36c6c4ca9326b9f49dfb71c3222e8bf2cd69.tar.xz samba-c6aa36c6c4ca9326b9f49dfb71c3222e8bf2cd69.zip |
s3: Fix const warnings
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib/ctdbd_conn.c')
-rw-r--r-- | source3/lib/ctdbd_conn.c | 5 |
1 files 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)); |