s3:smbd: add some const to req_is_in_chain()
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Mar 2013 11:36:30 +0000 (12:36 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 20 Mar 2013 16:32:26 +0000 (09:32 -0700)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/process.c
source3/smbd/proto.h

index 1640cca60d7c42d3ba6d5b07147e39e09a29b808..fcb970d77bce3a7f73453c77f00cde1e5dccd7e0 100644 (file)
@@ -3631,7 +3631,7 @@ void smbd_process(struct tevent_context *ev_ctx,
        exit_server_cleanly(NULL);
 }
 
-bool req_is_in_chain(struct smb_request *req)
+bool req_is_in_chain(const struct smb_request *req)
 {
        if (req->vwv != (const uint16_t *)(req->inbuf+smb_vwv)) {
                /*
index bd22dd3b59944ea3254ec05fb97a1f0bf1635a2c..7e13049ff8f387c489ff14346c03f9ccf8ab2a59 100644 (file)
@@ -801,7 +801,7 @@ bool smb1_parse_chain(TALLOC_CTX *mem_ctx, const uint8_t *buf,
                      struct smbd_server_connection *sconn,
                      bool encrypted, uint32_t seqnum,
                      struct smb_request ***reqs, unsigned *num_reqs);
-bool req_is_in_chain(struct smb_request *req);
+bool req_is_in_chain(const struct smb_request *req);
 void smbd_process(struct tevent_context *ev_ctx,
                  struct messaging_context *msg_ctx,
                  int sock_fd,