wok-next diff partimage/stuff/patches/partimage-0.6.9-zlib-1.2.6.patch @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/partimage/stuff/patches/partimage-0.6.9-zlib-1.2.6.patch	Tue Sep 01 11:04:25 2020 +0000
     1.3 @@ -0,0 +1,35 @@
     1.4 +diff --git a/src/client/imagefile.cpp b/src/client/imagefile.cpp
     1.5 +index dd83411..62d0f72 100644
     1.6 +--- a/src/client/imagefile.cpp
     1.7 ++++ b/src/client/imagefile.cpp
     1.8 +@@ -783,7 +783,7 @@ void CImage::openWriting()
     1.9 +   else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
    1.10 +     {
    1.11 +       showDebug(1, "open gzip\n");
    1.12 +-      m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h");
    1.13 ++      m_gzImageFile = gzdopen(m_nFdImage, "wb"); //"wb1h");
    1.14 +       if (m_gzImageFile == NULL)
    1.15 +    {
    1.16 +      showDebug(1, "error:%d %s\n", errno, strerror(errno));
    1.17 +@@ -1098,7 +1098,7 @@ void CImage::openReading(CVolumeHeader *vh /* = NULL */)
    1.18 +     }
    1.19 +   else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
    1.20 +     {
    1.21 +-      m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb");
    1.22 ++      m_gzImageFile = gzdopen(m_nFdImage, "rb");
    1.23 +       if (m_gzImageFile == NULL)
    1.24 +         THROW(ERR_ERRNO, errno);
    1.25 +       else
    1.26 +diff --git a/src/client/imagefile.h b/src/client/imagefile.h
    1.27 +index 4ba8910..6adb098 100644
    1.28 +--- a/src/client/imagefile.h
    1.29 ++++ b/src/client/imagefile.h
    1.30 +@@ -41,7 +41,7 @@ class CImage
    1.31 +   COptions m_options;
    1.32 + 
    1.33 +   FILE *m_fImageFile;
    1.34 +-  gzFile *m_gzImageFile;
    1.35 ++  gzFile m_gzImageFile;
    1.36 +   BZFILE *m_bzImageFile;
    1.37 + 
    1.38 +   int m_nFdImage;