The branch, master has been updated
       via  f9ba8f5 lib/util: change tevent_req_nterror() to a macro
      from  a40dcd1 s4-dns: use the generated krb5.conf in samba_dnsupdate

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


- Log -----------------------------------------------------------------
commit f9ba8f5d8af87c06e42a9c0c20b70171095c12b3
Author: Stefan Metzmacher <[email protected]>
Date:   Sun Sep 26 11:14:19 2010 +0200

    lib/util: change tevent_req_nterror() to a macro
    
    This way we can record where a tevent_req was finished by
    tevent_req_nterror().
    
    metze
    
    Autobuild-User: Stefan Metzmacher <[email protected]>
    Autobuild-Date: Mon Sep 27 03:18:14 UTC 2010 on sn-devel-104

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

Summary of changes:
 lib/util/tevent_ntstatus.c |    7 +++++--
 lib/util/tevent_ntstatus.h |    6 +++++-
 2 files changed, 10 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/util/tevent_ntstatus.c b/lib/util/tevent_ntstatus.c
index 4be4575..c4dd074 100644
--- a/lib/util/tevent_ntstatus.c
+++ b/lib/util/tevent_ntstatus.c
@@ -20,9 +20,12 @@
 #include "../replace/replace.h"
 #include "tevent_ntstatus.h"
 
-bool tevent_req_nterror(struct tevent_req *req,        NTSTATUS status)
+bool _tevent_req_nterror(struct tevent_req *req,
+                        NTSTATUS status,
+                        const char *location)
 {
-       return tevent_req_error(req, NT_STATUS_V(status));
+       return _tevent_req_error(req, NT_STATUS_V(status),
+                                location);
 }
 
 bool tevent_req_is_nterror(struct tevent_req *req, NTSTATUS *status)
diff --git a/lib/util/tevent_ntstatus.h b/lib/util/tevent_ntstatus.h
index c10aa36..4ac9243 100644
--- a/lib/util/tevent_ntstatus.h
+++ b/lib/util/tevent_ntstatus.h
@@ -25,7 +25,11 @@
 #include "../libcli/util/ntstatus.h"
 #include <tevent.h>
 
-bool tevent_req_nterror(struct tevent_req *req, NTSTATUS status);
+bool _tevent_req_nterror(struct tevent_req *req,
+                        NTSTATUS status,
+                        const char *location);
+#define tevent_req_nterror(req, status) \
+       _tevent_req_nterror(req, status, __location__)
 bool tevent_req_is_nterror(struct tevent_req *req, NTSTATUS *pstatus);
 NTSTATUS tevent_req_simple_recv_ntstatus(struct tevent_req *req);
 


-- 
Samba Shared Repository

Reply via email to