summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-03 11:51:48 +0000
committerMichael Adam <obnox@samba.org>2013-09-06 13:40:05 +0200
commitf4e40494c07067838dd67f0614dc75fdb6291c41 (patch)
treeefb2c44d4c0de1832d945486f8cbc0995d06aa65 /source3/lib
parent451cde7f2ab82ea500a69a6072b28991bf4e13a2 (diff)
downloadsamba-f4e40494c07067838dd67f0614dc75fdb6291c41.tar.gz
samba-f4e40494c07067838dd67f0614dc75fdb6291c41.tar.bz2
samba-f4e40494c07067838dd67f0614dc75fdb6291c41.zip
lib: Apply some const to pull_file_id_24
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/file_id.c2
-rw-r--r--source3/lib/file_id.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c
index ba4b3a3d86..f8295ce738 100644
--- a/source3/lib/file_id.c
+++ b/source3/lib/file_id.c
@@ -80,7 +80,7 @@ void push_file_id_24(char *buf, const struct file_id *id)
/*
pull a 24 byte version of a file id from a buffer
*/
-void pull_file_id_24(char *buf, struct file_id *id)
+void pull_file_id_24(const char *buf, struct file_id *id)
{
ZERO_STRUCTP(id);
id->devid = IVAL(buf, 0);
diff --git a/source3/lib/file_id.h b/source3/lib/file_id.h
index 2ca839077f..6fa98400b8 100644
--- a/source3/lib/file_id.h
+++ b/source3/lib/file_id.h
@@ -34,4 +34,4 @@ const char *file_id_string_tos(const struct file_id *id);
const char *file_id_string(TALLOC_CTX *mem_ctx, const struct file_id *id);
void push_file_id_16(char *buf, const struct file_id *id);
void push_file_id_24(char *buf, const struct file_id *id);
-void pull_file_id_24(char *buf, struct file_id *id);
+void pull_file_id_24(const char *buf, struct file_id *id);