From: Matthew Fernandez Date: Sat, 15 Jan 2022 18:16:01 +0000 (-0800) Subject: lefty: use a C99 bool instead of int for 'innetscape' X-Git-Tag: 3.0.0~66^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7bee91bf3880307889eb549f05d7f6619903e658;p=graphviz lefty: use a C99 bool instead of int for 'innetscape' --- diff --git a/cmd/lefty/common.c b/cmd/lefty/common.c index 13c99b521..8a89b4b19 100644 --- a/cmd/lefty/common.c +++ b/cmd/lefty/common.c @@ -21,7 +21,7 @@ static size_t leftypathlen; jmp_buf exitljbuf; int idlerunmode; fd_set inputfds; -static int innetscape; +static bool innetscape; static char *nswin; #ifndef FEATURE_MS @@ -87,7 +87,7 @@ int init (char *aout) { c = 0; if (getenv ("INNETSCAPE")) - innetscape = TRUE, nswin = getenv ("NSWIN"); + innetscape = true, nswin = getenv ("NSWIN"); if (!(pathp = malloc (PATHINCR * PATHSIZE))) panic1 (POS, "init", "pathp malloc failed"); if (!(cmdp = malloc (CMDINCR * CMDSIZE)))