summaryrefslogtreecommitdiff
path: root/libarchive/archive_private.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2020-02-26 16:11:38 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2021-10-23 19:26:18 +0100
commitee99f7fc02270749565a082512b10528c0c9ac98 (patch)
tree52ac561473c39fdd4d6449cbccdaf84848825be3 /libarchive/archive_private.h
parentdc321febde83dd0f31158e1be61a7aedda65e7a2 (diff)
downloadlibarchive-ee99f7fc02270749565a082512b10528c0c9ac98.tar.gz
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 <emil.l.velikov@gmail.com>
Diffstat (limited to 'libarchive/archive_private.h')
-rw-r--r--libarchive/archive_private.h2
1 files changed, 1 insertions, 1 deletions
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;