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



commit 2bf32713e4c0d6d50076befa4c127610f4fcbb1c
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 07604b2..97dcc67 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>
@@ -1587,7 +1589,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]