# HG changeset patch
# User xyz
# Date 1245446973 -7200
# Node ID 78649c3ec6cb1a8c8aec9530db47df59dfd63b92
# Parent  6a8c423f56243a2ad988a8cc1980c222d4ec359d
Return failure when executed with no arguments

diff -r 6a8c423f5624 -r 78649c3ec6cb main.c
--- a/main.c	Tue Aug 12 22:13:09 2008 +0200
+++ b/main.c	Fri Jun 19 23:29:33 2009 +0200
@@ -8,5 +8,5 @@
    }
    (void)printf("\n");
 
-   return EXIT_SUCCESS;
+   return argc > 1 ? EXIT_SUCCESS : EXIT_FAILURE;
 }
# HG changeset patch
# User xyz
# Date 1245447973 -7200
# Node ID 7c92b0cf284d923dcff65bf59f096444e36be1c3
# Parent  78649c3ec6cb1a8c8aec9530db47df59dfd63b92
Do something else

diff -r 6a8c423f5624 -r 78649c3ec6cb main.c
--- a/main.c	Tue Aug 12 22:13:09 2008 +0200
+++ b/main.c	Fri Jun 19 23:29:33 2009 +0200
@@ -8,5 +8,5 @@
    }
    (void)printf("\n");

-   return argc > 1 ? EXIT_SUCCESS : EXIT_FAILURE;
+   return argc == 1 ? EXIT_SUCCESS : EXIT_FAILURE;
 }
