summaryrefslogtreecommitdiff
path: root/lib/util/tevent_ntstatus.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-26 11:14:19 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-27 03:18:14 +0000
commitf9ba8f5d8af87c06e42a9c0c20b70171095c12b3 (patch)
tree6e99866859e259d7f9d433616b813c98eb331a8f /lib/util/tevent_ntstatus.c
parenta40dcd161c417897c35b46417ea5d103ccd661b9 (diff)
downloadsamba-f9ba8f5d8af87c06e42a9c0c20b70171095c12b3.tar.gz
samba-f9ba8f5d8af87c06e42a9c0c20b70171095c12b3.tar.bz2
samba-f9ba8f5d8af87c06e42a9c0c20b70171095c12b3.zip
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 <metze@samba.org> Autobuild-Date: Mon Sep 27 03:18:14 UTC 2010 on sn-devel-104
Diffstat (limited to 'lib/util/tevent_ntstatus.c')
-rw-r--r--lib/util/tevent_ntstatus.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/util/tevent_ntstatus.c b/lib/util/tevent_ntstatus.c
index 4be4575499..c4dd0740dc 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)