mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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
This commit is contained in:
parent
c4504bd7e3
commit
c42c0c071f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user