]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix zip file warnings
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sun, 26 Jul 2009 15:51:46 +0000 (15:51 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sun, 26 Jul 2009 15:51:46 +0000 (15:51 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@393 61c419a2-8eb2-4b30-bcec-8cead039b335

plugins/archivezip/pkzip.h

index 56ba503a5b40fd691282992023af795bd112324e..49e1cc9e256e06ebd09c47e95166ef7e4046a9d1 100644 (file)
@@ -72,7 +72,7 @@ inline void istream_read_zip_dostime(InputStream& istream, zip_dostime& dostime)
   dostime.date = istream_read_int16_le(istream); 
 }
 
   dostime.date = istream_read_int16_le(istream); 
 }
 
-const zip_magic zip_file_header_magic = { 'P', 'K', 0x03, 0x04, };
+const zip_magic zip_file_header_magic =  { { 'P', 'K', 0x03, 0x04 } };
 
 /* A. Local file header */
 struct zip_file_header
 
 /* A. Local file header */
 struct zip_file_header
@@ -111,7 +111,7 @@ inline void istream_read_zip_file_header(SeekableInputStream& istream, zip_file_
  * and immediately follows the last byte of compressed data. It is only used if
  * the output media of the compressor was not seekable, eg. standard output.
  */
  * and immediately follows the last byte of compressed data. It is only used if
  * the output media of the compressor was not seekable, eg. standard output.
  */
-const zip_magic zip_file_trailer_magic = { 'P', 'K', 0x07, 0x08, };
+const zip_magic zip_file_trailer_magic = { { 'P', 'K', 0x07, 0x08} };
 
 struct zip_file_trailer
 {
 
 struct zip_file_trailer
 {
@@ -138,7 +138,7 @@ inline void istream_read_zip_file_trailer(InputStream& istream, zip_file_trailer
  * - a single entry including filename, extras and comment may not exceed 64k.
  */
 
  * - a single entry including filename, extras and comment may not exceed 64k.
  */
 
-const zip_magic zip_root_dirent_magic = { 'P', 'K', 0x01, 0x02, };
+const zip_magic zip_root_dirent_magic = { { 'P', 'K', 0x01, 0x02 } };
 
 struct zip_root_dirent
 {
 
 struct zip_root_dirent
 {
@@ -185,7 +185,7 @@ inline void istream_read_zip_root_dirent(SeekableInputStream& istream, zip_root_
 }
 
   /* end of central dir record */
 }
 
   /* end of central dir record */
-const zip_magic zip_disk_trailer_magic = { 'P', 'K', 0x05, 0x06, };
+const zip_magic zip_disk_trailer_magic = { { 'P', 'K', 0x05, 0x06 } };
 const unsigned int disk_trailer_length = 22;
 struct zip_disk_trailer
 {
 const unsigned int disk_trailer_length = 22;
 struct zip_disk_trailer
 {