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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Mar 2013 08:30:19 +0000 (09:30 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/process.c
source3/smbd/proto.h

index e934eaaa9e728b893ba7ab9c818c95219a4416a7..43bf76e50d8e1ec8f055ed953bc717123401d4e0 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 fae1407a816f877cedefa95bbd179b02077bf535..35ae8a24632c19f69cc2415ee30cd5c522eb5429 100644 (file)
@@ -786,7 +786,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,