From b5b943dbada86c839e6c575aed6842acd13e5446 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 5 Jun 2012 09:37:39 +0200 Subject: s3:smbd: make use of change_notify_fsp_has_changes() metze --- source3/smbd/nttrans.c | 2 +- source3/smbd/smb2_notify.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 53e1713991..f7a27187e8 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1743,7 +1743,7 @@ static void call_nt_transact_notify_change(connection_struct *conn, } } - if (fsp->notify->num_changes != 0) { + if (change_notify_fsp_has_changes(fsp)) { /* * We've got changes pending, respond immediately diff --git a/source3/smbd/smb2_notify.c b/source3/smbd/smb2_notify.c index 3f5365c154..c0315b2948 100644 --- a/source3/smbd/smb2_notify.c +++ b/source3/smbd/smb2_notify.c @@ -270,7 +270,7 @@ static struct tevent_req *smbd_smb2_notify_send(TALLOC_CTX *mem_ctx, } } - if (fsp->notify->num_changes != 0) { + if (change_notify_fsp_has_changes(fsp)) { /* * We've got changes pending, respond immediately -- cgit