smbd: Apply some const to message_to_share_mode_entry
authorVolker Lendecke <vl@samba.org>
Tue, 3 Sep 2013 11:55:27 +0000 (11:55 +0000)
committerMichael Adam <obnox@samba.org>
Fri, 6 Sep 2013 11:40:25 +0000 (13:40 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/oplock.c
source3/smbd/proto.h

index ba8298fe5a686eecb2509cda22b3ff3ca83d6ee0..11e302ac3ed9d4723744c1d1f2c3fee9af3ab82f 100644 (file)
@@ -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);
index d9b9d4d9732fdf3139b7d6cd9ebf0aca6fdff57c..8b6987ec05b21c133535ec7e39e6b5fcbd0aeeb6 100644 (file)
@@ -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);