From ee99f7fc02270749565a082512b10528c0c9ac98 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 26 Feb 2020 16:11:38 +0000 Subject: archive: constify the archive::vtable dispatch Currently we have a constant dispatch/vtable that we populate at runtime for unknown reason. Remove the functions doing all the work and use a simple static const struct archive_vtable. Signed-off-by: Emil Velikov --- libarchive/archive_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libarchive/archive_private.h') diff --git a/libarchive/archive_private.h b/libarchive/archive_private.h index 55a8da18..88ad848e 100644 --- a/libarchive/archive_private.h +++ b/libarchive/archive_private.h @@ -107,7 +107,7 @@ struct archive { * Some public API functions depend on the "real" type of the * archive object. */ - struct archive_vtable *vtable; + const struct archive_vtable *vtable; int archive_format; const char *archive_format_name; -- cgit v1.2.1