Code

oping: Call `return' rather than `exit' in `main'.
authorFlorian Forster <octo@verplant.org>
Sat, 3 Jun 2006 08:36:28 +0000 (10:36 +0200)
committerFlorian Forster <octo@verplant.org>
Sat, 3 Jun 2006 08:36:28 +0000 (10:36 +0200)
src/oping.c

index 52f12c6d69ffb690cd4289f7a9cb8d1338394590..48f6db51886a5fe323f30756011f418959a51ce2 100644 (file)
@@ -333,7 +333,7 @@ int main (int argc, char **argv)
        }
 
        if (i == 0)
-               exit (1);
+               return (1);
 
        memset (&sigint_action, '\0', sizeof (sigint_action));
        sigint_action.sa_handler = sigint_handler;