From: Pierre Joye Date: Fri, 3 Nov 2006 16:34:44 +0000 (+0000) Subject: - _zip_error_clear declaration X-Git-Tag: RELEASE_1_0_0RC1~1143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b0966c2a7581c8b8d9a1d877f3435f2139f0475;p=php - _zip_error_clear declaration - WS --- diff --git a/ext/zip/lib/zip_stat_index.c b/ext/zip/lib/zip_stat_index.c index c823315da2..bab79a74ba 100644 --- a/ext/zip/lib/zip_stat_index.c +++ b/ext/zip/lib/zip_stat_index.c @@ -67,7 +67,7 @@ zip_stat_index(struct zip *za, int index, int flags, struct zip_stat *st) _zip_error_set(&za->error, ZIP_ER_INVAL, 0); return -1; } - + st->crc = za->cdir->entry[index].crc; st->size = za->cdir->entry[index].uncomp_size; st->mtime = za->cdir->entry[index].last_mod; diff --git a/ext/zip/lib/zipint.h b/ext/zip/lib/zipint.h index 9efaf06a33..ebf2743f99 100644 --- a/ext/zip/lib/zipint.h +++ b/ext/zip/lib/zipint.h @@ -199,6 +199,7 @@ void _zip_entry_free(struct zip_entry *); void _zip_entry_init(struct zip *, int); struct zip_entry *_zip_entry_new(struct zip *); +void _zip_error_clear(struct zip_error *); void _zip_error_copy(struct zip_error *, struct zip_error *); void _zip_error_fini(struct zip_error *); void _zip_error_get(struct zip_error *, int *, int *);