From e08d3ce887c84f81792463f91a65ef1c60a91bd5 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sun, 28 May 2017 19:46:39 -0700 Subject: [PATCH] Wrap assignments used as if-condition in parens to suppress warning. --- src/unixcomm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unixcomm.c b/src/unixcomm.c index 985621c..52734f9 100644 --- a/src/unixcomm.c +++ b/src/unixcomm.c @@ -305,10 +305,10 @@ int FindUnixPipes(void) { DBPRINT(("Entering FindUnixPipes\n")); UnixPipeIn = UnixPipeOut = StartTime = UnixPID = -1; - if (envtmp = getenv("LDEPIPEIN")) UnixPipeIn = atoi(envtmp); - if (envtmp = getenv("LDEPIPEOUT")) UnixPipeOut = atoi(envtmp); - if (envtmp = getenv("LDESTARTTIME")) StartTime = atoi(envtmp); - if (envtmp = getenv("LDEUNIXPID")) UnixPID = atoi(envtmp); + if ((envtmp = getenv("LDEPIPEIN"))) UnixPipeIn = atoi(envtmp); + if ((envtmp = getenv("LDEPIPEOUT"))) UnixPipeOut = atoi(envtmp); + if ((envtmp = getenv("LDESTARTTIME"))) StartTime = atoi(envtmp); + if ((envtmp = getenv("LDEUNIXPID"))) UnixPID = atoi(envtmp); /* This is a good place to initialize stuff like the UJ table */ #ifdef SYSVONLY