[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp

Miklos Vajna vmiklos at collabora.co.uk
Tue Aug 9 07:14:51 UTC 2016


 loolwsd/LOOLWSD.cpp |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

New commits:
commit 7eaa2bfc876ec83d0e1584f75f404c73f7644172
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Aug 9 09:14:28 2016 +0200

    loolwsd: fix -Werror,-Wparentheses-equality

diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 58c1b59..6d1affd 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -1761,15 +1761,14 @@ int LOOLWSD::main(const std::vector<std::string>& /*args*/)
         {
             if (forKitPid == pid)
             {
-                if (WIFEXITED(status))
+                if (WIFEXITED(status) == true)
                 {
                     Log::info() << "Child process [" << pid << "] exited with code: "
                                 << WEXITSTATUS(status) << "." << Log::end;
 
                     break;
                 }
-                else
-                if (WIFSIGNALED(status))
+                else if (WIFSIGNALED(status) == true)
                 {
                     std::string fate = "died";
                     if (WCOREDUMP(status))
@@ -1780,13 +1779,13 @@ int LOOLWSD::main(const std::vector<std::string>& /*args*/)
 
                     break;
                 }
-                else if (WIFSTOPPED(status))
+                else if (WIFSTOPPED(status) == true)
                 {
                     Log::info() << "Child process [" << pid << "] stopped with "
                                 << Util::signalName(WSTOPSIG(status))
                                 << Log::end;
                 }
-                else if (WIFCONTINUED(status))
+                else if (WIFCONTINUED(status) == true)
                 {
                     Log::info() << "Child process [" << pid << "] resumed with SIGCONT."
                                 << Log::end;


More information about the Libreoffice-commits mailing list