[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Mon Nov 18 20:06:04 MST 2013


The branch, master has been updated
       via  2bb0954 torture3: Use tevent_req_nterror properly
      from  b7da5a5 printing: always store sytem job-ID in queue state

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 2bb0954567dc2b3680a8fd9609a4930b9c635101
Author: Volker Lendecke <vl at samba.org>
Date:   Fri Nov 15 13:17:21 2013 +0000

    torture3: Use tevent_req_nterror properly
    
    Might be minor, but the less example of wrong API use we have the better
    it is.
    
    Signed-off-by: Volker Lendecke <vl at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Tue Nov 19 04:05:08 CET 2013 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/torture/torture.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 8313cf1..573e3f8 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -6754,10 +6754,9 @@ static void torture_createdel_created(struct tevent_req *subreq)
 
 	status = cli_ntcreate_recv(subreq, &fnum);
 	TALLOC_FREE(subreq);
-	if (!NT_STATUS_IS_OK(status)) {
+	if (tevent_req_nterror(req, status)) {
 		DEBUG(10, ("cli_ntcreate_recv returned %s\n",
 			   nt_errstr(status)));
-		tevent_req_nterror(req, status);
 		return;
 	}
 
@@ -6775,9 +6774,8 @@ static void torture_createdel_closed(struct tevent_req *subreq)
 	NTSTATUS status;
 
 	status = cli_close_recv(subreq);
-	if (!NT_STATUS_IS_OK(status)) {
+	if (tevent_req_nterror(req, status)) {
 		DEBUG(10, ("cli_close_recv returned %s\n", nt_errstr(status)));
-		tevent_req_nterror(req, status);
 		return;
 	}
 	tevent_req_done(req);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list