hirc

IRC client
Log | Files | Refs

commit 02555998c8e7ef28fa18e0365b592fb0cae91a8d
parent 7b772128d90fb94568267fbf994e2c056c403bc0
Author: hhvn <dev@hhvn.uk>
Date:   Wed,  1 Dec 2021 19:24:33 +0000

hirc.h: properly bracket strcmp_n

Diffstat:
Mhirc.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hirc.h b/hirc.h @@ -8,7 +8,7 @@ #define INPUT_MAX 8192 #define MAX_HISTORY 8192 /* real maximum = MAX_HISTORY * (channels + servers + queries) */ -#define strcmp_n(s1, s2) s1 == s2 ? 0 : (s1 ? s2 ? strcmp(s1, s2) : -1 : -1) +#define strcmp_n(s1, s2) (s1 == s2 ? 0 : (s1 ? s2 ? strcmp(s1, s2) : -1 : -1)) /* main.c */ void * emalloc(size_t size);