C standard compile fix.
authortwisti <none@none>
Mon, 15 Dec 2003 16:00:24 +0000 (16:00 +0000)
committertwisti <none@none>
Mon, 15 Dec 2003 16:00:24 +0000 (16:00 +0000)
src/vm/unzip.c
unzip.c

index 3e933510cb4bf065d5e24513018f54701506e325..27f5b244ef41d04a61e85f6f53420584889b690c 100644 (file)
@@ -761,6 +761,7 @@ extern int ZEXPORT unzGoToNextFile (file)
 
 void cacao_create_directoryList(unzFile file)
 {
+  cacao_entry_s* ent;
        unz_s* s=(unz_s*)file;
        char *c;
        int i;
@@ -771,7 +772,7 @@ void cacao_create_directoryList(unzFile file)
                return;
        }
        i=0;
-       cacao_entry_s* ent=s->cacao_dir_list=(cacao_entry_s*)ALLOC(sizeof(cacao_entry_s));
+       ent = s->cacao_dir_list = (cacao_entry_s *) ALLOC(sizeof(cacao_entry_s));
        ent->next=0;
        ent->pos=s->pos_in_central_dir;
 
diff --git a/unzip.c b/unzip.c
index 3e933510cb4bf065d5e24513018f54701506e325..27f5b244ef41d04a61e85f6f53420584889b690c 100644 (file)
--- a/unzip.c
+++ b/unzip.c
@@ -761,6 +761,7 @@ extern int ZEXPORT unzGoToNextFile (file)
 
 void cacao_create_directoryList(unzFile file)
 {
+  cacao_entry_s* ent;
        unz_s* s=(unz_s*)file;
        char *c;
        int i;
@@ -771,7 +772,7 @@ void cacao_create_directoryList(unzFile file)
                return;
        }
        i=0;
-       cacao_entry_s* ent=s->cacao_dir_list=(cacao_entry_s*)ALLOC(sizeof(cacao_entry_s));
+       ent = s->cacao_dir_list = (cacao_entry_s *) ALLOC(sizeof(cacao_entry_s));
        ent->next=0;
        ent->pos=s->pos_in_central_dir;