diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-15 10:50:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:05 -0500 |
commit | fb99bbe67597555109ebd65613a5aab395b43499 (patch) | |
tree | 72bca4d31eb9dcc7f91d66f424a6e114e9d05ed2 /source3/rpc_server | |
parent | 2753d30cbea6cc6689cda17182caff20d65c6f6c (diff) | |
download | samba-fb99bbe67597555109ebd65613a5aab395b43499.tar.gz samba-fb99bbe67597555109ebd65613a5aab395b43499.tar.bz2 samba-fb99bbe67597555109ebd65613a5aab395b43499.zip |
r22895: Convert some more calls from message_send_buf to messaging_send_buf
(This used to be commit c8b98273406242a89a7e5d1fb5d79120ebe5822a)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 10 | ||||
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 7 |
2 files changed, 12 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index a4edeb2cfd..cbc44a224a 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1212,8 +1212,9 @@ static BOOL srv_spoolss_drv_upgrade_printer(char* drivername) DEBUG(10,("srv_spoolss_drv_upgrade_printer: Sending message about driver upgrade [%s]\n", drivername)); - message_send_pid(pid_to_procid(sys_getpid()), - MSG_PRINTER_DRVUPGRADE, drivername, len+1, False); + messaging_send_buf(smbd_messaging_context(), procid_self(), + MSG_PRINTER_DRVUPGRADE, + (uint8 *)drivername, len+1); return True; } @@ -1310,8 +1311,9 @@ static BOOL srv_spoolss_reset_printerdata(char* drivername) DEBUG(10,("srv_spoolss_reset_printerdata: Sending message about resetting printerdata [%s]\n", drivername)); - message_send_pid(pid_to_procid(sys_getpid()), - MSG_PRINTERDATA_INIT_RESET, drivername, len+1, False); + messaging_send_buf(smbd_messaging_context(), procid_self(), + MSG_PRINTERDATA_INIT_RESET, + (uint8 *)drivername, len+1); return True; } diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index d0f2aa500f..bb60f57a14 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -1231,8 +1231,13 @@ WERROR _srvsvc_NetSessDel(pipes_struct *p, struct srvsvc_NetSessDel *r) if ((strequal(session_list[snum].username, r->in.user) || r->in.user[0] == '\0' ) && strequal(session_list[snum].remote_machine, machine)) { + NTSTATUS ntstat; + + ntstat = messaging_send(smbd_messaging_context(), + session_list[snum].pid, + MSG_SHUTDOWN, &data_blob_null); - if (NT_STATUS_IS_OK(message_send_pid(session_list[snum].pid, MSG_SHUTDOWN, NULL, 0, False))) + if (NT_STATUS_IS_OK(ntstat)) status = WERR_OK; } } |