diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-03 11:51:48 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-09-06 13:40:05 +0200 |
commit | f4e40494c07067838dd67f0614dc75fdb6291c41 (patch) | |
tree | efb2c44d4c0de1832d945486f8cbc0995d06aa65 | |
parent | 451cde7f2ab82ea500a69a6072b28991bf4e13a2 (diff) | |
download | samba-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>
-rw-r--r-- | source3/lib/file_id.c | 2 | ||||
-rw-r--r-- | source3/lib/file_id.h | 2 |
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); |