diff options
author | Volker Lendecke <vl@samba.org> | 2011-12-12 14:55:54 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-12-12 21:50:25 +0100 |
commit | 0f9d14820e222233d63b7a79b4b1ff044332ef41 (patch) | |
tree | d3e48dcf07b6d8364ac7cabf80391b626b5509fb /source3/utils/net_g_lock.c | |
parent | 77dc976b53490e06dff649f199033fe799b714bf (diff) | |
download | samba-0f9d14820e222233d63b7a79b4b1ff044332ef41.tar.gz |
s3: Remove a bunch of calls to procid_self()
All callers to messaging_[re]init only used procid_self()
Diffstat (limited to 'source3/utils/net_g_lock.c')
-rw-r--r-- | source3/utils/net_g_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_g_lock.c b/source3/utils/net_g_lock.c index f8a7a8b620..b9d99160bc 100644 --- a/source3/utils/net_g_lock.c +++ b/source3/utils/net_g_lock.c @@ -36,7 +36,7 @@ static bool net_g_lock_init(TALLOC_CTX *mem_ctx, d_fprintf(stderr, "ERROR: could not init event context\n"); goto fail; } - msg = messaging_init(mem_ctx, procid_self(), ev); + msg = messaging_init(mem_ctx, ev); if (msg == NULL) { d_fprintf(stderr, "ERROR: could not init messaging context\n"); goto fail; @@ -91,7 +91,7 @@ static int net_g_lock_do(struct net_context *c, int argc, const char **argv) status = g_lock_do(name, G_LOCK_WRITE, timeval_set(timeout / 1000, timeout % 1000), - procid_self(), net_g_lock_do_fn, &state); + net_g_lock_do_fn, &state); if (!NT_STATUS_IS_OK(status)) { d_fprintf(stderr, "ERROR: g_lock_do failed: %s\n", nt_errstr(status)); |