diff -Naur partimage-0.6.9/src/client/imagefile.cpp partimage-0.6.9-new/src/client/imagefile.cpp --- partimage-0.6.9/src/client/imagefile.cpp 2010-07-25 12:30:31.000000000 -0300 +++ partimage-0.6.9-new/src/client/imagefile.cpp 2012-09-20 08:52:11.568839328 -0300 @@ -783,7 +783,7 @@ else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression { showDebug(1, "open gzip\n"); - m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h"); + m_gzImageFile = (gzFile) gzdopen(m_nFdImage, "wb"); //"wb1h"); if (m_gzImageFile == NULL) { showDebug(1, "error:%d %s\n", errno, strerror(errno)); @@ -1098,7 +1098,7 @@ } else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression { - m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb"); + m_gzImageFile = (gzFile) gzdopen(m_nFdImage, "rb"); if (m_gzImageFile == NULL) THROW(ERR_ERRNO, errno); else diff -Naur partimage-0.6.9/src/client/imagefile.h partimage-0.6.9-new/src/client/imagefile.h --- partimage-0.6.9/src/client/imagefile.h 2010-07-25 12:30:31.000000000 -0300 +++ partimage-0.6.9-new/src/client/imagefile.h 2012-09-20 09:00:44.028620131 -0300 @@ -41,7 +41,7 @@ class CImage COptions m_options; FILE *m_fImageFile; - gzFile *m_gzImageFile; + gzFile m_gzImageFile; BZFILE *m_bzImageFile; lzmadec_FILE *m_lzmaImageFile;