summaryrefslogtreecommitdiff
path: root/source4/utils/net/net_time.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-14 20:00:32 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-14 20:00:32 +0200
commit18f8f5d6561d50b9179541ea24e03a5a807a2a2a (patch)
tree4759b1bc65e703213178d7ab4ef7c1a80e713161 /source4/utils/net/net_time.c
parenta15b6f1606e1c761c2c4037b734137e97f00489f (diff)
parent68a2c547d00d7a8d0c15744172489d9d010c31a3 (diff)
downloadsamba-18f8f5d6561d50b9179541ea24e03a5a807a2a2a.tar.gz
samba-18f8f5d6561d50b9179541ea24e03a5a807a2a2a.tar.bz2
samba-18f8f5d6561d50b9179541ea24e03a5a807a2a2a.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake4
(This used to be commit 1ef3830bb0d6e91e3b00e880784ca0741d9b4d49)
Diffstat (limited to 'source4/utils/net/net_time.c')
-rw-r--r--source4/utils/net/net_time.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/utils/net/net_time.c b/source4/utils/net/net_time.c
index 1f4bb3ed71..12a8132cea 100644
--- a/source4/utils/net/net_time.c
+++ b/source4/utils/net/net_time.c
@@ -22,6 +22,7 @@
#include "libnet/libnet.h"
#include "utils/net/net.h"
#include "system/time.h"
+#include "lib/events/events.h"
/*
* Code for getting the remote time
@@ -42,7 +43,7 @@ int net_time(struct net_context *ctx, int argc, const char **argv)
return net_time_usage(ctx, argc, argv);
}
- libnetctx = libnet_context_init(NULL, ctx->lp_ctx);
+ libnetctx = libnet_context_init(event_context_find(ctx), ctx->lp_ctx);
if (!libnetctx) {
return -1;
}
@@ -53,7 +54,7 @@ int net_time(struct net_context *ctx, int argc, const char **argv)
r.generic.in.server_name = server_name;
/* get the time */
- status = libnet_RemoteTOD(libnetctx, ctx->mem_ctx, &r);
+ status = libnet_RemoteTOD(libnetctx, ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("net_time: %s\n",r.generic.out.error_string));
return -1;