poldek: poldek/pm/rpm/install.c - eliminated stupid cast

mis mis at pld-linux.org
Tue Aug 22 17:05:46 CEST 2006


Author: mis                          Date: Tue Aug 22 15:05:46 2006 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- eliminated stupid cast

---- Files affected:
poldek/poldek/pm/rpm:
   install.c (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: poldek/poldek/pm/rpm/install.c
diff -u poldek/poldek/pm/rpm/install.c:1.4 poldek/poldek/pm/rpm/install.c:1.5
--- poldek/poldek/pm/rpm/install.c:1.4	Mon Sep 27 22:26:58 2004
+++ poldek/poldek/pm/rpm/install.c	Tue Aug 22 17:05:40 2006
@@ -112,7 +112,7 @@
                 if (oldfl >= 0) {
                     oldfl |= FD_CLOEXEC; /* scripts shouldn't inherit
                                             rpm file descriptor */
-                    Fcntl(fd, F_SETFD, (void*)oldfl); /* what for is void*? */
+                    fcntl(Fileno(fd), F_SETFD, oldfl);
                 }
             }
             return fd;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/poldek/poldek/pm/rpm/install.c?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list