diff options
author | Brian Tarricone <brian@tarricone.org> | 2008-11-02 17:43:38 +0000 |
---|---|---|
committer | Brian Tarricone <brian@tarricone.org> | 2008-11-02 17:43:38 +0000 |
commit | 2897a9905e5bdc5f5f1bebdef3aa5809d130d78c (patch) | |
tree | 5525cd55d072cb98073358e46ecf53bcdcce235d /xfconfd/main.c | |
parent | 1b9353fd03bcd1bed8b375304cbbc2facd57b244 (diff) | |
download | xfconf-2897a9905e5bdc5f5f1bebdef3aa5809d130d78c.tar.gz |
some cleanups
(Old svn revision: 28583)
Diffstat (limited to 'xfconfd/main.c')
-rw-r--r-- | xfconfd/main.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/xfconfd/main.c b/xfconfd/main.c index 9924801..fa55311 100644 --- a/xfconfd/main.c +++ b/xfconfd/main.c @@ -27,6 +27,10 @@ #include <signal.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif + #ifdef HAVE_UNISTD_H #include <unistd.h> #endif @@ -163,13 +167,13 @@ main(int argc, g_printerr("Error parsing options: %s\n", error->message); g_error_free(error); g_option_context_free(opt_ctx); - return 1; + return EXIT_FAILURE; } g_option_context_free(opt_ctx); if(print_version) { g_print("Xfconfd version " VERSION "\n"); - return 0; + return EXIT_SUCCESS; } mloop = g_main_loop_new(NULL, FALSE); @@ -201,9 +205,9 @@ main(int argc, xfconfd = xfconf_daemon_new_unique(backends, &error); if(!xfconfd) { - g_printerr("Xfconfd failed to start: %s\n", error->message); + g_error("Xfconfd failed to start: %s\n", error->message); g_error_free(error); - return 1; + return EXIT_FAILURE; } g_strfreev(backends); @@ -219,5 +223,5 @@ main(int argc, g_main_loop_unref(mloop); - return 0; + return EXIT_SUCCESS; } |