[gegl] tools: Minor nitpicking cleanup



commit 525366100e2c01be9be2d518a7ff05c74ac50c34
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Dec 18 21:41:57 2014 +0530

    tools: Minor nitpicking cleanup

 tools/detect_opencl.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/tools/detect_opencl.c b/tools/detect_opencl.c
index d66894f..f5928bd 100644
--- a/tools/detect_opencl.c
+++ b/tools/detect_opencl.c
@@ -22,17 +22,22 @@
 
 int main(int argc, char **argv)
 {
+  int ret;
+
   gegl_init(&argc, &argv);
+
   if (gegl_cl_is_accelerated())
     {
       printf ("yes");
-      gegl_exit ();
-      return 0;
+      ret = 0;
     }
   else
     {
       printf ("no");
-      gegl_exit ();
-      return 1;
+      ret = 1;
     }
-}
\ No newline at end of file
+
+  gegl_exit ();
+
+  return ret;
+}


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