summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-03-18 12:36:30 +0100
committerJeremy Allison <jra@samba.org>2013-03-20 09:32:26 -0700
commitb80111adb3a30ff386b3c45fcf962c417256bb59 (patch)
treea2a80fd160171441cc7aa9f54f08f9cb54e081ff
parentbe98c1c889166a5f2b83e1e29d7dcbbaf6baab8f (diff)
downloadsamba-b80111adb3a30ff386b3c45fcf962c417256bb59.tar.gz
samba-b80111adb3a30ff386b3c45fcf962c417256bb59.tar.bz2
samba-b80111adb3a30ff386b3c45fcf962c417256bb59.zip
s3:smbd: add some const to req_is_in_chain()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/process.c2
-rw-r--r--source3/smbd/proto.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 1640cca60d..fcb970d77b 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 bd22dd3b59..7e13049ff8 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,