From e16c181f5869db5148410af39719128ec925923b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 31 Mar 2018 19:38:56 -0500 Subject: Remove semicolon from WOULD_EXIT() macro (screws up if statement levels). --- lib/lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/lib.h b/lib/lib.h index d2005e08..609210ac 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -347,7 +347,7 @@ pid_t __attribute__((returns_twice)) xvforkwrap(pid_t pid); if (!_noexit_res) do {x;} while(0); \ toys.rebound = 0; \ y = _noexit_res; \ -} while(0); +} while(0) // Wrapper that discards true/false "did it exit" value. #define NOEXIT(x) WOULD_EXIT(_noexit_res, x) -- cgit v1.2.3