Skip to content

Commit ca16f3f

Browse files
author
Ralph Castain
authored
Merge pull request #2676 from rhc54/topic/alps
Minor cleanups to eliminate warnings
2 parents 39d880f + 684e696 commit ca16f3f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

orte/mca/oob/alps/oob_alps_component.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* All rights reserved.
1515
* Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
1616
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
17-
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
17+
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1818
* Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
1919
* $COPYRIGHT$
2020
*
@@ -80,7 +80,7 @@ static void component_shutdown(void);
8080
static int component_send(orte_rml_send_t *msg);
8181
static char* component_get_addr(void);
8282
static int component_set_addr(orte_process_name_t *peer, char **uris);
83-
static bool component_is_reachable(orte_process_name_t *peer);
83+
static bool component_is_reachable(char *routed, orte_process_name_t *peer);
8484
#if OPAL_ENABLE_FT_CR == 1
8585
static int component_ft_event(int state);
8686
#endif
@@ -193,15 +193,14 @@ static int component_send(orte_rml_send_t *msg)
193193

194194
static char* component_get_addr(void)
195195
{
196-
int len;
197196
char hn[OPAL_MAXHOSTNAMELEN], *cptr;
198197

199198
/*
200199
* TODO: for aries want to plug in GNI addr here instead to
201200
* eventually be able to support connect/accept using aprun.
202201
*/
203202

204-
len = gethostname(hn, sizeof(hn));
203+
gethostname(hn, sizeof(hn));
205204

206205
asprintf(&cptr, "gni://%s:%d", hn, getpid());
207206

@@ -220,7 +219,7 @@ static int component_set_addr(orte_process_name_t *peer,
220219
return ORTE_ERR_NOT_SUPPORTED;
221220
}
222221

223-
static bool component_is_reachable(orte_process_name_t *peer)
222+
static bool component_is_reachable(char *routed, orte_process_name_t *peer)
224223
{
225224
opal_output_verbose(10, orte_oob_base_framework.framework_output,
226225
"%s oob:alps: component_set_addr invoked - this should not be happening",

0 commit comments

Comments
 (0)