]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add braces as suggested by recent gcc versions.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Sep 2008 11:21:35 +0000 (11:21 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Sep 2008 11:21:35 +0000 (11:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@16722 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/hsl/source/detached_ma27.cc

index b18216c61681e82d64d5acfc24354db5e7ffc3bc..33962d6d368771af3d243c6299c04b4d1272522c 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2002, 2003, 2006, 2007 by the deal.II authors
+//    Copyright (C) 2002, 2003, 2006, 2007, 2008 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -86,17 +86,19 @@ void monitor_parent_liveness (const pid_t master_pid,
     {
       int ret = kill (master_pid, 0);
       if (ret != 0)
-        if ((ret == -1) && (errno == ESRCH))
-          die ("Master process seems to have died!", primary_pid);
-        else
-          die ("Unspecified error while checking for other process!",
-               ret, errno, primary_pid);
-
+       {
+         if ((ret == -1) && (errno == ESRCH))
+           die ("Master process seems to have died!", primary_pid);
+         else
+           die ("Unspecified error while checking for other process!",
+                ret, errno, primary_pid);
+       }
+      
                                        // ok, master still running,
                                        // take a little rest and then
                                        // ask again
       sleep (10);
-    };
+    }
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.