Skip to content

Commit 513b3f6

Browse files
committed
SQUASHME opal/if/linux_ipv6: fix some compiler warnings
Signed-off-by: Jeff Squyres <[email protected]>
1 parent 7b43760 commit 513b3f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/if/linux_ipv6/if_linux_ipv6.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ opal_if_base_component_t mca_if_linux_ipv6_component = {
7979
},
8080
};
8181

82+
#if OPAL_ENABLE_IPV6
8283
static bool hex2int(char hex, int *dst)
8384
{
8485
if ('0' <= hex && hex <= '9') {
@@ -94,7 +95,7 @@ static bool hex2int(char hex, int *dst)
9495

9596
}
9697

97-
static bool hexdecode(const char *src, char *dst, size_t dstsize)
98+
static bool hexdecode(const char *src, uint8_t *dst, size_t dstsize)
9899
{
99100
int hi, lo;
100101
for (size_t i = 0; i < dstsize; i++) {
@@ -106,6 +107,7 @@ static bool hexdecode(const char *src, char *dst, size_t dstsize)
106107
}
107108
return true;
108109
}
110+
#endif
109111

110112
static int if_linux_ipv6_open(void)
111113
{

0 commit comments

Comments
 (0)