The following commit has been merged in the master branch:
commit bac56ef59f96318eb4954c43bfc83590ef7d7492
Author: Guillem Jover <[EMAIL PROTECTED]>
Date:   Fri Nov 21 16:52:03 2008 +0200

    libdpkg: In checksubprocerr return an explicit 0 instead of n

diff --git a/ChangeLog b/ChangeLog
index 3d5576b..67918fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-12-05  Guillem Jover  <[EMAIL PROTECTED]>
 
+       * lib/mlib.c (checksubprocerr): Return an explicit 0 instead of n.
+
+2008-12-05  Guillem Jover  <[EMAIL PROTECTED]>
+
        * lib/ehandle.c (warning): Print the current program name and a
        'warning' string.
        * lib/mlib.c (checksubprocerr): Use warning() instead of a print
diff --git a/lib/mlib.c b/lib/mlib.c
index 2d7136e..edf21f4 100644
--- a/lib/mlib.c
+++ b/lib/mlib.c
@@ -121,7 +121,9 @@ void m_pipe(int *fds) {
 int checksubprocerr(int status, const char *description, int flags) {
   int n;
   if (WIFEXITED(status)) {
-    n= WEXITSTATUS(status); if (!n) return n;
+    n = WEXITSTATUS(status);
+    if (!n)
+      return 0;
     if (flags & PROCNOERR)
       return -1;
     if (flags & PROCWARN)

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to