smbd: Fix a const warning
authorVolker Lendecke <vl@samba.org>
Tue, 11 Jun 2013 18:37:11 +0000 (20:37 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 11 Jun 2013 20:21:08 +0000 (13:21 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/process.c

index 484832b20063a260315168a7d3b9b283b1be048e..5ef0fd335e2a491e0b781154e04775b4f063075f 100644 (file)
@@ -2133,7 +2133,7 @@ bool smb1_walk_chain(const uint8_t *buf,
        wct = CVAL(buf, smb_wct);
        vwv = (const uint16_t *)(buf + smb_vwv);
        num_bytes = smb_buflen(buf);
-       bytes = (uint8_t *)smb_buf_const(buf);
+       bytes = (const uint8_t *)smb_buf_const(buf);
 
        if (!fn(cmd, wct, vwv, num_bytes, bytes, private_data)) {
                return false;