s3:smbd fix some compiler warnings
[ambi/samba.git] / source3 / smbd / process.c
index 3445ae56c56c35f8f45d4feccce034025054d666..eca172d2327104c43e116eeeaeaaede304df7f72 100644 (file)
@@ -1702,7 +1702,7 @@ void smb_request_done(struct smb_request *req)
                        req->conn = NULL;
                }
                next->chain_fsp = req->chain_fsp;
-               next->inbuf = (uint8_t *)req->inbuf;
+               next->inbuf = (const uint8_t *)req->inbuf;
 
                req = next;
                req->conn = switch_message(req->cmd, req);
@@ -2134,7 +2134,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;
@@ -3280,6 +3280,9 @@ static void smbd_tevent_trace_callback(enum tevent_trace_point point,
        case TEVENT_TRACE_AFTER_WAIT:
                END_PROFILE_STAMP(smbd_idle, conn->smbd_idle_profstamp);
                break;
+       default:
+               /* nothing */
+               break;
        }
 }