LP#1243841: quiet a misleading indentation warning
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 7 May 2018 20:03:16 +0000 (16:03 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 7 May 2018 20:03:16 +0000 (16:03 -0400)
Adjusts a spaces-vs-tabs issue to fix the following compilation
warning:

osrf_prefork.c: In function ‘check_children’:
osrf_prefork.c:1067:5: warning: this ‘if’ clause does not
guard... [-Wmisleading-indentation]
     if( select_ret <= 0 ) // we're done here
     ^~
osrf_prefork.c:1072:2: note: ...this statement, but the latter is
misleadingly indented as if it is guarded by the ‘if’
  cur_child = forker->first_child;
  ^~~~~~~~~

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

src/libopensrf/osrf_prefork.c

index 658fd8c..f02f635 100644 (file)
@@ -1065,7 +1065,7 @@ static int check_children( prefork_simple* forker, int forever ) {
        }
 
     if( select_ret <= 0 ) // we're done here
-        return select_ret;
+               return select_ret;
 
        // Check each child in the active list.
        // If it has responded, move it to the idle list.