smbd: Apply some const to message_to_share_mode_entry
[mat/samba.git] / source3 / smbd / oplock.c
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);