summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-03 11:55:27 +0000
committerMichael Adam <obnox@samba.org>2013-09-06 13:40:25 +0200
commit051b9121bc8e113239f7207a68860b6472d117d4 (patch)
treec6a9a480d65133435e29bebefb13eee0aab9dbbb
parentf4e40494c07067838dd67f0614dc75fdb6291c41 (diff)
downloadsamba-051b9121bc8e113239f7207a68860b6472d117d4.tar.gz
samba-051b9121bc8e113239f7207a68860b6472d117d4.tar.bz2
samba-051b9121bc8e113239f7207a68860b6472d117d4.zip
smbd: Apply some const to message_to_share_mode_entry
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/smbd/oplock.c2
-rw-r--r--source3/smbd/proto.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index ba8298fe5a..11e302ac3e 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -819,7 +819,7 @@ void share_mode_entry_to_message(char *msg, const struct share_mode_entry *e)
De-linearize an internal oplock break message to a share mode entry struct.
****************************************************************************/
-void message_to_share_mode_entry(struct share_mode_entry *e, char *msg)
+void message_to_share_mode_entry(struct share_mode_entry *e, const char *msg)
{
e->pid.pid = (pid_t)IVAL(msg,OP_BREAK_MSG_PID_OFFSET);
e->op_mid = BVAL(msg,OP_BREAK_MSG_MID_OFFSET);
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index d9b9d4d973..8b6987ec05 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -672,7 +672,7 @@ void smbd_contend_level2_oplocks_begin(files_struct *fsp,
void smbd_contend_level2_oplocks_end(files_struct *fsp,
enum level2_contention_type type);
void share_mode_entry_to_message(char *msg, const struct share_mode_entry *e);
-void message_to_share_mode_entry(struct share_mode_entry *e, char *msg);
+void message_to_share_mode_entry(struct share_mode_entry *e, const char *msg);
bool init_oplocks(struct smbd_server_connection *sconn);
void init_kernel_oplocks(struct smbd_server_connection *sconn);