wok-next view partimage/stuff/patches/partimage-0.6.9-zlib-1.2.6.patch @ rev 20719
partimage: use patches
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 15:45:14 2018 +0300 (2018-05-27) |
parents | |
children |
line source
1 diff --git a/src/client/imagefile.cpp b/src/client/imagefile.cpp
2 index dd83411..62d0f72 100644
3 --- a/src/client/imagefile.cpp
4 +++ b/src/client/imagefile.cpp
5 @@ -783,7 +783,7 @@ void CImage::openWriting()
6 else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
7 {
8 showDebug(1, "open gzip\n");
9 - m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h");
10 + m_gzImageFile = gzdopen(m_nFdImage, "wb"); //"wb1h");
11 if (m_gzImageFile == NULL)
12 {
13 showDebug(1, "error:%d %s\n", errno, strerror(errno));
14 @@ -1098,7 +1098,7 @@ void CImage::openReading(CVolumeHeader *vh /* = NULL */)
15 }
16 else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
17 {
18 - m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb");
19 + m_gzImageFile = gzdopen(m_nFdImage, "rb");
20 if (m_gzImageFile == NULL)
21 THROW(ERR_ERRNO, errno);
22 else
23 diff --git a/src/client/imagefile.h b/src/client/imagefile.h
24 index 4ba8910..6adb098 100644
25 --- a/src/client/imagefile.h
26 +++ b/src/client/imagefile.h
27 @@ -41,7 +41,7 @@ class CImage
28 COptions m_options;
30 FILE *m_fImageFile;
31 - gzFile *m_gzImageFile;
32 + gzFile m_gzImageFile;
33 BZFILE *m_bzImageFile;
35 int m_nFdImage;