Re: relayctl: rename "empty" to "unavailable" in table status

Kirill A. Korinsky <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
On Sat, 29 Aug 2026 11:43:51 +0200,
Rafael Sadowski <[email protected]> wrote:
> 
> relayctl: rename "empty" to "unavailable" in table status
> 
> The word empty suggested the table has no hosts configured. It really means
> the table has no hosts currently up, so unavailable describes the state more
> clearly.
> 
> OK?
>

Reads OK kirill@ and make sense.

But I sugest wait a bit, maybe someone will bring some reason to not do it.

> Index: relayctl.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/relayctl/relayctl.c,v
> diff -u -p -r1.67 relayctl.c
> --- relayctl.c	29 Aug 2026 09:36:49 -0000	1.67
> +++ relayctl.c	29 Aug 2026 09:42:47 -0000
> @@ -544,7 +544,7 @@ print_table_status(int up, int fl)
>  	if (fl & F_DISABLE) {
>  		snprintf(buf, sizeof(buf) - 1, "disabled");
>  	} else if (!up) {
> -		snprintf(buf, sizeof(buf) - 1, "empty");
> +		snprintf(buf, sizeof(buf) - 1, "unavailable");
>  	} else if (verbose)
>  		snprintf(buf, sizeof(buf) - 1, "active (%d hosts)", up);
>  	else
> 

-- 
wbr, Kirill
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.