From 7a5ea4e973465e9aa059753e77c9c5b6b571ac01 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Mon, 4 Mar 2024 23:54:35 -0300 Subject: [PATCH] Utilize `stdbool.h` --- src/isinetaddr6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isinetaddr6.c b/src/isinetaddr6.c index 8b6e181..036b48d 100644 --- a/src/isinetaddr6.c +++ b/src/isinetaddr6.c @@ -41,7 +41,7 @@ isinetaddr6(const char *str) digitlen++; hexdigits++; if (digitlen > MAX_DIGITLEN) { - return 0; + return false; } else if (str[i-1] == SEP) { hextets++; }