diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-08-14 07:39:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:29:40 -0500 |
commit | b41b38031f8eeec916e0e5f9fb80cd8ecd5e22cd (patch) | |
tree | e4b848975de7f43c646f1aa3622af1d310731e7c /source3/smbd/notify.c | |
parent | bba684f2c0c40c58fcc263eb6794c389760d0d44 (diff) | |
download | samba-b41b38031f8eeec916e0e5f9fb80cd8ecd5e22cd.tar.gz samba-b41b38031f8eeec916e0e5f9fb80cd8ecd5e22cd.tar.xz samba-b41b38031f8eeec916e0e5f9fb80cd8ecd5e22cd.zip |
r24398: Convert call_nt_transact_notify_change to the new API
(This used to be commit 607b3ab8bc6052770f0324b57f3db6e1c11a7005)
Diffstat (limited to 'source3/smbd/notify.c')
-rw-r--r-- | source3/smbd/notify.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 6c77f4c270b..8474ca6446b 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -24,7 +24,7 @@ struct notify_change_request { struct notify_change_request *prev, *next; struct files_struct *fsp; /* backpointer for cancel by mid */ - char request_buf[smb_size]; + uint8 request_buf[smb_size]; uint32 filter; uint32 max_param; struct notify_mid_map *mid_map; @@ -128,14 +128,14 @@ static BOOL notify_marshall_changes(int num_changes, Setup the common parts of the return packet and send it. *****************************************************************************/ -static void change_notify_reply_packet(const char *request_buf, +static void change_notify_reply_packet(const uint8 *request_buf, NTSTATUS error_code) { - const char *inbuf = request_buf; + const char *inbuf = (char *)request_buf; char outbuf[smb_size+38]; memset(outbuf, '\0', sizeof(outbuf)); - construct_reply_common(request_buf, outbuf); + construct_reply_common(inbuf, outbuf); ERROR_NT(error_code); @@ -151,7 +151,7 @@ static void change_notify_reply_packet(const char *request_buf, "failed."); } -void change_notify_reply(const char *request_buf, uint32 max_param, +void change_notify_reply(const uint8 *request_buf, uint32 max_param, struct notify_change_buf *notify_buf) { char *outbuf = NULL; @@ -183,9 +183,9 @@ void change_notify_reply(const char *request_buf, uint32 max_param, goto done; } - construct_reply_common(request_buf, outbuf); + construct_reply_common((char *)request_buf, outbuf); - if (send_nt_replies(request_buf, outbuf, buflen, NT_STATUS_OK, prs_data_p(&ps), + if (send_nt_replies((char *)request_buf, outbuf, buflen, NT_STATUS_OK, prs_data_p(&ps), prs_offset(&ps), NULL, 0) == -1) { exit_server("change_notify_reply_packet: send_smb failed."); } @@ -238,7 +238,7 @@ NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter, return status; } -NTSTATUS change_notify_add_request(const char *inbuf, uint32 max_param, +NTSTATUS change_notify_add_request(const uint8 *inbuf, uint32 max_param, uint32 filter, BOOL recursive, struct files_struct *fsp) { |