[shotwell] Remove custom WEXISTATUS implementation



commit 956326efd82a91c2cbc980b2edb12232082e2ad8
Author: Jens Georg <mail jensge org>
Date:   Thu Apr 28 22:03:33 2016 +0200

    Remove custom WEXISTATUS implementation
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/VideoSupport.vala |    5 +++--
 src/util/system.vala  |    3 ---
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/VideoSupport.vala b/src/VideoSupport.vala
index 4e6f3ed..55d9969 100644
--- a/src/VideoSupport.vala
+++ b/src/VideoSupport.vala
@@ -258,8 +258,9 @@ public class VideoReader {
         if (ret_waitpid < 0) {
             debug("waitpid returned error code: %d", ret_waitpid);
             buf = null;
-        } else if (0 != posix_wexitstatus(child_status)) {
-            debug("Thumbnailer exited with error code: %d", posix_wexitstatus(child_status));
+        } else if (0 != Process.exit_status(child_status)) {
+            debug("Thumbnailer exited with error code: %d",
+                    Process.exit_status(child_status));
             buf = null;
         }
         
diff --git a/src/util/system.vala b/src/util/system.vala
index 59ca47e..faaffff 100644
--- a/src/util/system.vala
+++ b/src/util/system.vala
@@ -30,6 +30,3 @@ void show_file_in_nautilus(string filename) throws Error {
     GLib.Process.spawn_command_line_async(get_nautilus_install_location() + " " + filename);
 }
 
-int posix_wexitstatus(int status) {
-    return (((status) & 0xff00) >> 8);
-}


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