summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-08-21 10:27:43 +0000
committerStefan Metzmacher <metze@samba.org>2013-10-06 13:55:12 +0200
commiteb5e817a73ab158c8f106ac6ae0503d70a315d7f (patch)
tree084485fff075db7207a1f32669e32a760f130cdd
parentb40fcf3f17e4ed9dde31dff73e4669d867753941 (diff)
downloadsamba-eb5e817a73ab158c8f106ac6ae0503d70a315d7f.tar.gz
samba-eb5e817a73ab158c8f106ac6ae0503d70a315d7f.tar.bz2
samba-eb5e817a73ab158c8f106ac6ae0503d70a315d7f.zip
libcli: Add const to smb2_lease_pull
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--libcli/smb/smb2_lease.c3
-rw-r--r--libcli/smb/smb2_lease.h3
2 files changed, 4 insertions, 2 deletions
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_ */