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 52f12c6..48f6db5 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;