From 014eb66ce4db1bc2c1b23c5266b00e8b83ba00c2 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 16 Dec 2023 20:47:56 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4808 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libsystem.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/libsystem.c b/lib/libsystem.c index 3c23e0c0..332cc5e2 100644 --- a/lib/libsystem.c +++ b/lib/libsystem.c @@ -523,10 +523,7 @@ pm_system2_lp(const char * const progName, va_start(args, termStatusP); - endOfArgs = FALSE; - argArray = NULL; - - for (endOfArgs = FALSE, argArray = NULL, n = 0; + for (endOfArgs = false, argArray = NULL, n = 0; !endOfArgs; ) { const char * const arg = va_arg(args, const char *); @@ -536,7 +533,7 @@ pm_system2_lp(const char * const progName, argArray[n++] = arg; if (!arg) - endOfArgs = TRUE; + endOfArgs = true; } va_end(args); @@ -628,9 +625,6 @@ pm_system_lp(const char * const progName, va_start(args, accepterParm); - endOfArgs = FALSE; - argArray = NULL; - for (endOfArgs = FALSE, argArray = NULL, n = 0; !endOfArgs; ) { @@ -641,7 +635,7 @@ pm_system_lp(const char * const progName, argArray[n++] = arg; if (!arg) - endOfArgs = TRUE; + endOfArgs = true; } va_end(args); -- cgit 1.4.1