From: Paul Eggert Date: Mon, 4 Apr 2005 18:22:44 +0000 (+0000) Subject: * src/buffer.c: Fix struct zip_magic to avoid problems with pedantic X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5d8707756507ee5e057fe55b9fabcc8f49009d1c;p=chaz%2Ftar * src/buffer.c: Fix struct zip_magic to avoid problems with pedantic C compilers. Make 'magic' const and redo it to save alignment and space. --- diff --git a/ChangeLog b/ChangeLog index 9500b2a..41a025a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-04-04 Paul Eggert + + * 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 * src/xheader.c (decode_record): Don't dump core when given