diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-27 09:29:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:50 -0500 |
commit | 4db33293ab50de99484122e7050e33c5f97980a5 (patch) | |
tree | 9b42f6a9ae6f835db72d775e93dacd3be3ed5a95 /source3 | |
parent | d5daef32b226b373185f4f18298a2872cd9a7784 (diff) | |
download | samba-4db33293ab50de99484122e7050e33c5f97980a5.tar.gz samba-4db33293ab50de99484122e7050e33c5f97980a5.tar.xz samba-4db33293ab50de99484122e7050e33c5f97980a5.zip |
r23162: Make use of messaging_send_buf
(This used to be commit 3f8186fe85a897b104cd825a005333259d6d008b)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/locking/locking.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 17c6d3e9c31..aacb056c070 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -822,7 +822,6 @@ BOOL rename_share_filename(struct messaging_context *msg_ctx, size_t msg_len; char *frm = NULL; int i; - DATA_BLOB msg; if (!lck) { return False; @@ -866,8 +865,6 @@ BOOL rename_share_filename(struct messaging_context *msg_ctx, safe_strcpy(&frm[16], lck->servicepath, sp_len); safe_strcpy(&frm[16 + sp_len + 1], lck->filename, fn_len); - msg = data_blob_const(frm, msg_len); - /* Send the messages. */ for (i=0; i<lck->num_share_modes; i++) { struct share_mode_entry *se = &lck->share_modes[i]; @@ -885,7 +882,8 @@ BOOL rename_share_filename(struct messaging_context *msg_ctx, (unsigned int)lck->dev, (double)lck->ino, lck->servicepath, lck->filename )); - messaging_send(msg_ctx, se->pid, MSG_SMB_FILE_RENAME, &msg); + messaging_send_buf(msg_ctx, se->pid, MSG_SMB_FILE_RENAME, + (uint8 *)frm, msg_len); } return True; |