From eb5e817a73ab158c8f106ac6ae0503d70a315d7f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 21 Aug 2013 10:27:43 +0000 Subject: libcli: Add const to smb2_lease_pull Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- libcli/smb/smb2_lease.c | 3 ++- libcli/smb/smb2_lease.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'libcli') diff --git a/libcli/smb/smb2_lease.c b/libcli/smb/smb2_lease.c index 10beacac25..9e6c950d33 100644 --- a/libcli/smb/smb2_lease.c +++ b/libcli/smb/smb2_lease.c @@ -23,7 +23,8 @@ #include "includes.h" #include "../libcli/smb/smb_common.h" -ssize_t smb2_lease_pull(uint8_t *buf, size_t len, struct smb2_lease *lease) +ssize_t smb2_lease_pull(const uint8_t *buf, size_t len, + struct smb2_lease *lease) { int version; diff --git a/libcli/smb/smb2_lease.h b/libcli/smb/smb2_lease.h index fa8e7af841..73f97acb75 100644 --- a/libcli/smb/smb2_lease.h +++ b/libcli/smb/smb2_lease.h @@ -44,7 +44,8 @@ struct smb2_lease { * Parse a smb2 lease create context. Return -1 on error, buffer.length on * success. V1 and V2 differ only by length of buffer.length */ -ssize_t smb2_lease_pull(uint8_t *buf, size_t len, struct smb2_lease *lease); +ssize_t smb2_lease_pull(const uint8_t *buf, size_t len, + struct smb2_lease *lease); bool smb2_lease_push(const struct smb2_lease *lease, uint8_t *buf, size_t len); #endif /* _LIBCLI_SMB_SMB2_LEASE_H_ */ -- cgit