[gnome-panel/wip/3.0-freeze-break: 13/32] main.c: Return 1 instead of -1



commit 08038aaeb9fda034f41cb91c94845776db58461d
Author: Colin Walters <walters verbum org>
Date:   Wed Mar 23 11:04:34 2011 -0400

    main.c: Return 1 instead of -1
    
    A -1 error code will just turn into 255, which is lame.  Fix
    it to be just 1 like everything else; we have no error code
    standardization or anything.

 gnome-panel/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/main.c b/gnome-panel/main.c
index 10ebf1c..54a40cc 100644
--- a/gnome-panel/main.c
+++ b/gnome-panel/main.c
@@ -92,7 +92,7 @@ main (int argc, char **argv)
 
 	if (!panel_shell_register (replace)) {
 		panel_cleanup_do ();
-		return -1;
+		return 1;
 	}
 
 	panel_action_protocol_init ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]