summaryrefslogtreecommitdiff
path: root/src/execline/loopwhilex.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-02-01 18:08:26 +0000
committerLaurent Bercot <ska@appnovation.com>2023-02-01 18:08:26 +0000
commitedf81b0d16322e5d49ec22f394b669d9094daac1 (patch)
tree04b1a40a5af1c8d95978e0e85d96cb8e5cb061bb /src/execline/loopwhilex.c
parent5b5f5e507db58c5005cd8a572f761ef2f002cb0f (diff)
downloadexecline-edf81b0d16322e5d49ec22f394b669d9094daac1.tar.xz
Add a multicall target. If you use it, you're on your own.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/execline/loopwhilex.c')
-rw-r--r--src/execline/loopwhilex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/execline/loopwhilex.c b/src/execline/loopwhilex.c
index b29d26a..acae3b3 100644
--- a/src/execline/loopwhilex.c
+++ b/src/execline/loopwhilex.c
@@ -12,7 +12,7 @@
#define USAGE "loopwhilex [ -n ] [ -o okcode,okcode,... | -x exitcode,exitcode,... ] prog..."
#define dieusage() strerr_dieusage(100, USAGE)
-static int isok (unsigned short *tab, unsigned int n, int code)
+static int lw_isok (unsigned short *tab, unsigned int n, int code)
{
unsigned int i = 0 ;
for (; i < n ; i++) if ((unsigned short)code == tab[i]) break ;
@@ -67,7 +67,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
else strerr_diefu2sys(111, "spawn ", argv[0]) ;
}
if (wait_pid(pid, &wstat) < 0) strerr_diefu1sys(111, "wait_pid") ;
- cont = not != isok(okcodes, nbc, wait_estatus(wstat)) ;
+ cont = not != lw_isok(okcodes, nbc, wait_estatus(wstat)) ;
}
return wait_estatus(wstat) ;
}