]> Dogcows Code - chaz/tar/commitdiff
* src/buffer.c: Fix struct zip_magic to avoid problems with pedantic
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Apr 2005 18:22:44 +0000 (18:22 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Apr 2005 18:22:44 +0000 (18:22 +0000)
C compilers.  Make 'magic' const and redo it to save alignment and space.

ChangeLog

index 9500b2a69a0d53e8346d8864b83e4521194f7090..41a025adab939332b0948af466b24b100a0621b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * src/buffer.c (struct zip_magic): Use char arrays, not pointers.
+       The unsigned char * pointer ran afoul of pedantic C compilers, and
+       we didn't need pointers anyway.  Put the size field before the
+       data to avoid unnecessary padding.  All uses changed.
+       (magic) Make it const, since it doesn't change.  All used changed.
+
 2005-04-02  Paul Eggert  <eggert@cs.ucla.edu>
 
        * src/xheader.c (decode_record): Don't dump core when given
This page took 0.032039 seconds and 4 git commands to generate.