Re: [hackers] [libsl][PATCH] die: exit: use EXIT_FAILURE intead of 1

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri, 29 Jul 2022 10:18:25 +0200

On Thu, Jul 28, 2022 at 07:32:54PM -0500, explosion0mental_AT_gmail.com wrote:
> From: explosion-mental <explosion0mental_AT_gmail.com>
>
> stdlib.h is included anyway.
> ---
> util.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/util.c b/util.c
> index fe044fc..e03ec21 100644
> --- a/util.c
> +++ b/util.c
> _AT_@ -31,5 +31,5 @@ die(const char *fmt, ...) {
> fputc('\n', stderr);
> }
>
> - exit(1);
> + exit(EXIT_FAILURE);
> }
> --
> 2.37.1
>
>

I think either are fine.

Maybe we shouldnt yak-shave too much anymore...

-- 
Kind regards,
Hiltjo
Received on Fri Jul 29 2022 - 10:18:25 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 29 2022 - 10:24:35 CEST