From a489b6699d4f4a49bc431bba6daaf50bd66b56ff Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 4 Oct 2024 22:08:46 +1000 Subject: [PATCH] ctdb-common: Make the argument to ctdb_sys_have_ip() const Arguably, this would have made sense back in commit bf86562144fe4e9541bd993519aca958c2bdb794. Signed-off-by: Martin Schwenke Reviewed-by: John Mulligan Reviewed-by: Anoop C S --- ctdb/common/system_socket.c | 2 +- ctdb/common/system_socket.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/common/system_socket.c b/ctdb/common/system_socket.c index cf4f4fe5d72..6fe4c719f00 100644 --- a/ctdb/common/system_socket.c +++ b/ctdb/common/system_socket.c @@ -163,7 +163,7 @@ bool ctdb_sys_local_ip_check(const struct ctdb_sys_local_ips_context *ips_ctx, /* * See if the given IP is currently on an interface */ -bool ctdb_sys_have_ip(ctdb_sock_addr *_addr) +bool ctdb_sys_have_ip(const ctdb_sock_addr *_addr) { int s; int ret; diff --git a/ctdb/common/system_socket.h b/ctdb/common/system_socket.h index 2674f2b8e85..3edc9e146e4 100644 --- a/ctdb/common/system_socket.h +++ b/ctdb/common/system_socket.h @@ -30,7 +30,7 @@ int ctdb_sys_local_ips_init(TALLOC_CTX *ctx, struct ctdb_sys_local_ips_context **ips_ctx); bool ctdb_sys_local_ip_check(const struct ctdb_sys_local_ips_context *ips_ctx, const ctdb_sock_addr *addr); -bool ctdb_sys_have_ip(ctdb_sock_addr *addr); +bool ctdb_sys_have_ip(const ctdb_sock_addr *addr); int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface); -- 2.47.3