summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-06-14 13:00:53 -0400
committerSimo Sorce <idra@samba.org>2008-06-14 13:00:53 -0400
commit2daf2897d5c70c0efbeba9b827c62700b9a9537c (patch)
treed0236f23f6774f775d2a150361c2f5a9674eaf06 /source4/utils
parent929adc9efa5cf985f0585214d30d18521aa1a821 (diff)
downloadsamba-2daf2897d5c70c0efbeba9b827c62700b9a9537c.tar.gz
samba-2daf2897d5c70c0efbeba9b827c62700b9a9537c.tar.bz2
samba-2daf2897d5c70c0efbeba9b827c62700b9a9537c.zip
Use a custom init function for samba4 that sets a samba4
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/net/net.c2
-rw-r--r--source4/utils/nmblookup.c2
-rw-r--r--source4/utils/ntlm_auth.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index a87b266568..1c834fe4f0 100644
--- a/source4/utils/net/net.c
+++ b/source4/utils/net/net.c
@@ -185,7 +185,7 @@ static int binary_net(int argc, const char **argv)
dcerpc_init();
- ev = event_context_init(NULL);
+ ev = s4_event_context_init(NULL);
if (!ev) {
d_printf("Failed to create an event context\n");
exit(1);
diff --git a/source4/utils/nmblookup.c b/source4/utils/nmblookup.c
index 980e06602d..a74ab5a42e 100644
--- a/source4/utils/nmblookup.c
+++ b/source4/utils/nmblookup.c
@@ -359,7 +359,7 @@ int main(int argc, const char *argv[])
load_interfaces(NULL, lp_interfaces(cmdline_lp_ctx), &ifaces);
- ev = event_context_init(talloc_autofree_context());
+ ev = s4_event_context_init(talloc_autofree_context());
while (poptPeekArg(pc)) {
const char *name = poptGetArg(pc);
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c
index 95029deffa..6d62968b05 100644
--- a/source4/utils/ntlm_auth.c
+++ b/source4/utils/ntlm_auth.c
@@ -462,7 +462,7 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
return;
}
- ev = event_context_init(state);
+ ev = s4_event_context_init(state);
if (!ev) {
exit(1);
}