Skip to content

Commit

Permalink
Fix function declaration
Browse files Browse the repository at this point in the history
We almost never encounter it, so this error has gone undetected
for quite some time. When the system lacks a sockaddr structure,
we have to provide a "no-op" function. What remains unclear is
how that can compile when the function parameters include a
sockaddr structure - but that mystery will have to remain
unsolved.

Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Apr 8, 2024
1 parent 213956c commit 889b123
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/util/pmix_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Copyright (c) 2013-2020 Intel, Inc. All rights reserved.
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2021-2022 Nanook Consulting. All rights reserved.
* Copyright (c) 2021-2024 Nanook Consulting All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -420,13 +420,14 @@ bool pmix_net_islocalhost(const struct sockaddr *addr)
return false;
}

bool pmix_net_samenetwork(const struct sockaddr *addr1, const struct sockaddr *addr2,
bool pmix_net_samenetwork(const struct sockaddr_storage *addr1,
const struct sockaddr_storage *addr2,
uint32_t prefixlen)
{
return false;
}

bool bool pmix_net_addr_isipv6linklocal(const struct sockaddr *addr)
bool pmix_net_addr_isipv6linklocal(const struct sockaddr *addr)
{
return false;
}
Expand Down

0 comments on commit 889b123

Please sign in to comment.