[gnome-photos/wip/rishi/thumbnailer: 6/12] application: Use a named constant, not a magic number



commit 8c2292e8727fe11775d65af56a243d979f12563f
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Feb 10 14:29:07 2017 +0100

    application: Use a named constant, not a magic number

 src/photos-application.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index e735bd3..bf36828 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -27,6 +27,8 @@
 
 #include "config.h"
 
+#include <stdlib.h>
+
 #include <gegl.h>
 #include <gexiv2/gexiv2.h>
 #include <gio/gio.h>
@@ -1586,7 +1588,7 @@ photos_application_handle_local_options (GApplication *application, GVariantDict
   if (g_variant_dict_contains (options, "version"))
     {
       g_print ("%s %s\n", PACKAGE_TARNAME, PACKAGE_VERSION);
-      ret_val = 0;
+      ret_val = EXIT_SUCCESS;
     }
 
   return ret_val;


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