On Sep 13, 2013, at 12:10 AM, Konrad Kleine <notifications@github.com> wrote:

> In libarchive/archive_read_support_format_zip.c:
> 
> > @@ -1128,26 +1129,49 @@ static int	zip_read_local_file_header(struct archive_read *a,
> >  	return (ret);
> >  }
> >  
> > +struct compression_method {
> 
> Without the type I don't see a way to calculate the number of elements in the compression_name() function.

You don't need to state the type at all.  For an array of any type, the number of elements is:

sizeof(array) / sizeof(array[0])

Tim