Mikhail Maroukhine : cabinet: Fix compiler warning with flag -Wcast-qual.

Alexandre Julliard julliard at winehq.org
Mon Mar 29 09:57:53 CDT 2010


Module: wine
Branch: master
Commit: 09dca97fc3196d342b7afccb95dde576fac7dd82
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=09dca97fc3196d342b7afccb95dde576fac7dd82

Author: Mikhail Maroukhine <mikolg at yandex.ru>
Date:   Sat Mar 27 13:48:58 2010 +0600

cabinet: Fix compiler warning with flag -Wcast-qual.

---

 dlls/cabinet/fdi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index de64f02..b68ab15 100644
--- a/dlls/cabinet/fdi.c
+++ b/dlls/cabinet/fdi.c
@@ -77,7 +77,7 @@ THOSE_ZIP_CONSTS;
 
 struct fdi_file {
   struct fdi_file *next;               /* next file in sequence          */
-  LPCSTR filename;                     /* output name of file            */
+  LPSTR filename;                     /* output name of file            */
   int    fh;                           /* open file handle or NULL       */
   cab_ULONG length;                    /* uncompressed length of file    */
   cab_ULONG offset;                    /* uncompressed offset in folder  */
@@ -2301,7 +2301,7 @@ static void free_decompression_mem(HFDI hfdi,
     }
     while (CAB(firstfile)) {
       file = CAB(firstfile);
-      if (file->filename) PFDI_FREE(hfdi, (void *)file->filename);
+      if (file->filename) PFDI_FREE(hfdi, file->filename);
       CAB(firstfile) = CAB(firstfile)->next;
       PFDI_FREE(hfdi, file);
     }




More information about the wine-cvs mailing list