From b80111adb3a30ff386b3c45fcf962c417256bb59 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 18 Mar 2013 12:36:30 +0100 Subject: [PATCH] s3:smbd: add some const to req_is_in_chain() Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/smbd/process.c | 2 +- source3/smbd/proto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 1640cca60d7..fcb970d77bc 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -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)) { /* diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index bd22dd3b599..7e13049ff8f 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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, -- 2.11.4.GIT