From a51e8f82e7c5a51893d43c7d00495ceba6a661ab Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:46:16 +0200 Subject: plugins/netutils: Use C99 booleans --- plugins/netutils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/netutils.h') diff --git a/plugins/netutils.h b/plugins/netutils.h index ea653e72..a95057e0 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h @@ -73,8 +73,8 @@ int send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, /* "is_*" wrapper macros and functions */ -int is_host (const char *); -int is_addr (const char *); +bool is_host (const char *); +bool is_addr (const char *); int dns_lookup (const char *, struct sockaddr_storage *, int); void host_or_die(const char *str); #define resolve_host_or_addr(addr, family) dns_lookup(addr, NULL, family) @@ -89,7 +89,7 @@ void host_or_die(const char *str); extern unsigned int socket_timeout; extern unsigned int socket_timeout_state; extern int econn_refuse_state; -extern int was_refused; +extern bool was_refused; extern int address_family; void socket_timeout_alarm_handler (int) __attribute__((noreturn)); -- cgit v1.2.3-74-g34f1