]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- killed warning on 64-bit archs
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 13 Jan 2004 20:25:07 +0000 (20:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-scripts-closefds.patch -> 1.3

rpm-scripts-closefds.patch

index a3b72d890330903aaaa3ee659dd2789f0ada9fb1..98a95cc9f054dfcb6f732eb022068153e867f24b 100644 (file)
@@ -6,12 +6,12 @@
            }
 -      } else
 +      } else {
-+          int oldfl;
++          long oldfl;
            fd = fdLink(fd, "persist (showProgress)");
 +          oldfl=Fcntl(fd, F_GETFD, 0);
 +          if(oldfl >= 0) {
 +              oldfl |= FD_CLOEXEC; /* scripts shouldn't inherit rpm file descriptor */
-+              Fcntl(fd, F_SETFD, oldfl);
++              Fcntl(fd, F_SETFD, (void*)oldfl);
 +          }
 +      }
        /*@=type@*/
This page took 0.0383 seconds and 4 git commands to generate.