diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-16 22:30:15 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-16 22:30:15 +0200 |
commit | a5d52174bd993b32d01d26a795a56df4a92eba45 (patch) | |
tree | d87a3e1eab33c194a4746e978324a24c31806834 /source4/utils/net/net_password.c | |
parent | b815b81fb09f770fcacc7e06e82b9ec5f5992fdb (diff) | |
download | samba-a5d52174bd993b32d01d26a795a56df4a92eba45.tar.gz samba-a5d52174bd993b32d01d26a795a56df4a92eba45.tar.bz2 samba-a5d52174bd993b32d01d26a795a56df4a92eba45.zip |
Avoid event_find_context() when the event context is already available
in the net utility.
(This used to be commit d40804777edf41889bd461f63f7a07cc1cc60e27)
Diffstat (limited to 'source4/utils/net/net_password.c')
-rw-r--r-- | source4/utils/net/net_password.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/utils/net/net_password.c b/source4/utils/net/net_password.c index 97bb467fac..55f7c3c31d 100644 --- a/source4/utils/net/net_password.c +++ b/source4/utils/net/net_password.c @@ -53,7 +53,7 @@ static int net_password_change(struct net_context *ctx, int argc, const char **a new_password = getpass(password_prompt); } - libnetctx = libnet_context_init(event_context_find(ctx), ctx->lp_ctx); + libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); if (!libnetctx) { return -1; } @@ -128,7 +128,7 @@ static int net_password_set(struct net_context *ctx, int argc, const char **argv new_password = getpass(password_prompt); } - libnetctx = libnet_context_init(event_context_find(ctx), ctx->lp_ctx); + libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); if (!libnetctx) { return -1; } |