Skip to content

Commit 267821f

Browse files
committed
pmix2x/pmix: fix a typo in PMIx_tool_init()
and remove now useless local variable i
1 parent efce8cc commit 267821f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opal/mca/pmix/pmix2x/pmix/src/tool/pmix_tool.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ PMIX_EXPORT int PMIx_tool_init(pmix_proc_t *proc,
189189
pmix_kval_t *kptr;
190190
pmix_status_t rc;
191191
pmix_nspace_t *nptr, *nsptr;
192-
int i, server_pid = -1;
192+
int server_pid = -1;
193193
int hostnamelen = 10;
194194
char hostname[hostnamelen];
195195
DIR *cur_dirp = NULL;
@@ -218,8 +218,8 @@ pmix_output(0, "TOOL INIT");
218218
if (0 == strcmp(PMIX_EVENT_BASE, info[n].key)) {
219219
pmix_globals.evbase = (pmix_event_base_t*)info[n].value.data.ptr;
220220
pmix_globals.external_evbase = true;
221-
} else if (strcmp(info[i].key, PMIX_SERVER_PIDINFO) == 0) {
222-
server_pid = info[i].value.data.integer;
221+
} else if (strcmp(info[n].key, PMIX_SERVER_PIDINFO) == 0) {
222+
server_pid = info[n].value.data.integer;
223223
}
224224
}
225225
}

0 commit comments

Comments
 (0)