summaryrefslogtreecommitdiffstats
path: root/main/partimage/partimage-0.6.9-zlib-1.2.6.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-18 08:12:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-18 08:13:34 +0000
commitf5edf3be6fda2e25ce8a47eba346c266351fb30f (patch)
treebfa74b471aed9e1e3a3be301932f663c8a1eec9f /main/partimage/partimage-0.6.9-zlib-1.2.6.patch
parent2f95d3f2773af24d5a18cf59088a857ef4923f63 (diff)
downloadaports-f5edf3be6fda2e25ce8a47eba346c266351fb30f.tar.bz2
aports-f5edf3be6fda2e25ce8a47eba346c266351fb30f.tar.xz
main/partimage: move from testing
Diffstat (limited to 'main/partimage/partimage-0.6.9-zlib-1.2.6.patch')
-rw-r--r--main/partimage/partimage-0.6.9-zlib-1.2.6.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/partimage/partimage-0.6.9-zlib-1.2.6.patch b/main/partimage/partimage-0.6.9-zlib-1.2.6.patch
new file mode 100644
index 000000000..9922daa81
--- /dev/null
+++ b/main/partimage/partimage-0.6.9-zlib-1.2.6.patch
@@ -0,0 +1,35 @@
+diff --git a/src/client/imagefile.cpp b/src/client/imagefile.cpp
+index dd83411..62d0f72 100644
+--- a/src/client/imagefile.cpp
++++ b/src/client/imagefile.cpp
+@@ -783,7 +783,7 @@ void CImage::openWriting()
+ else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
+ {
+ showDebug(1, "open gzip\n");
+- m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h");
++ m_gzImageFile = gzdopen(m_nFdImage, "wb"); //"wb1h");
+ if (m_gzImageFile == NULL)
+ {
+ showDebug(1, "error:%d %s\n", errno, strerror(errno));
+@@ -1098,7 +1098,7 @@ void CImage::openReading(CVolumeHeader *vh /* = NULL */)
+ }
+ else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
+ {
+- m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb");
++ m_gzImageFile = gzdopen(m_nFdImage, "rb");
+ if (m_gzImageFile == NULL)
+ THROW(ERR_ERRNO, errno);
+ else
+diff --git a/src/client/imagefile.h b/src/client/imagefile.h
+index 4ba8910..6adb098 100644
+--- a/src/client/imagefile.h
++++ b/src/client/imagefile.h
+@@ -41,7 +41,7 @@ class CImage
+ COptions m_options;
+
+ FILE *m_fImageFile;
+- gzFile *m_gzImageFile;
++ gzFile m_gzImageFile;
+ BZFILE *m_bzImageFile;
+
+ int m_nFdImage;