The following commit has been merged in the master branch:
commit 2a71e444e863a4bf28b7dd39e621c44ab771db99
Author: Guillem Jover <guil...@debian.org>
Date:   Sat Sep 11 06:21:36 2010 +0200

    dpkg-deb: Remove unused safe_fflush function
    
    This function was used to fix a problem with undefined behaviour on
    input streams, which does not apply anymore as it's not used.

diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c
index 91fc89a..004d798 100644
--- a/dpkg-deb/extract.c
+++ b/dpkg-deb/extract.c
@@ -122,24 +122,6 @@ parseheaderlength(const char *inh, size_t len,
   return (size_t)r;
 }
 
-static void
-safe_fflush(FILE *f)
-{
-#if defined(__GLIBC__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ > 0)
-  /* XXX: Glibc 2.1 and some versions of Linux want to make fflush()
-   * move the current fpos. Remove this code some time. */
-  fpos_t fpos;
-
-  if (fgetpos(f, &fpos))
-    ohshit(_("failed getting the current file position"));
-  fflush(f);
-  if (fsetpos(f, &fpos))
-    ohshit(_("failed setting the current file position"));
-#else
-  fflush(f);
-#endif
-}
-
 void extracthalf(const char *debar, const char *directory,
                  const char *taroption, int admininfo) {
   char versionbuf[40];

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to