summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-10-14 11:52:24 +0200
committerJeremy Allison <jra@samba.org>2016-05-16 23:23:53 +0200
commitc42c0c071f3ac6067ff9c53fade2e900342d56ae (patch)
tree9901d055b71f6cd50a29dbfe19bf5b6564c785fb
parentc4504bd7e344773f5d1b8cb16c398e43de3d2390 (diff)
downloadsamba-c42c0c071f3ac6067ff9c53fade2e900342d56ae.tar.gz
torture: Remove a use of get_my_vnn()
Reduce the use of globals Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon May 16 23:23:53 CEST 2016 on sn-devel-144
-rw-r--r--source3/torture/msg_source.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/torture/msg_source.c b/source3/torture/msg_source.c
index 293b0995278..c15f24da9e1 100644
--- a/source3/torture/msg_source.c
+++ b/source3/torture/msg_source.c
@@ -110,7 +110,7 @@ int main(int argc, const char *argv[])
struct messaging_context *msg_ctx;
struct tevent_req *req;
int ret;
- struct server_id id;
+ struct server_id my_id, id;
if (argc != 2) {
fprintf(stderr, "Usage: %s <dst>\n", argv[0]);
@@ -130,8 +130,9 @@ int main(int argc, const char *argv[])
perror("messaging_init failed");
return -1;
}
+ my_id = messaging_server_id(msg_ctx);
- id = server_id_from_string(get_my_vnn(), argv[1]);
+ id = server_id_from_string(my_id.vnn, argv[1]);
if (!procid_valid(&id)) {
fprintf(stderr, "pid %s invalid\n", argv[1]);
return -1;