diff options
author | Mike Frysinger <vapier@gentoo.org> | 2017-03-23 02:26:52 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2017-03-23 13:28:26 -0400 |
commit | 872a761591806bbbf069e057d9dc0301f338f08d (patch) | |
tree | fcc9663a649803908210413d16fa059f21d1b9f9 /libarchive/archive_write_set_format.c | |
parent | 4fb11600dd38b0b32f16bd4539b32bdc84738736 (diff) | |
download | libarchive-872a761591806bbbf069e057d9dc0301f338f08d.tar.gz |
constify variables more
A bunch of constant variables/tables are missing const markings.
Adding them allows moving more data to the read only sections, and
ends up shrinking writable data a bit by 1k on x86_64/Linux. Not
much, but still nice.
Diffstat (limited to 'libarchive/archive_write_set_format.c')
-rw-r--r-- | libarchive/archive_write_set_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_write_set_format.c b/libarchive/archive_write_set_format.c index 744302d0..0f706231 100644 --- a/libarchive/archive_write_set_format.c +++ b/libarchive/archive_write_set_format.c @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_write_set_format.c 201168 2009-1 #include "archive_private.h" /* A table that maps format codes to functions. */ -static +static const struct { int code; int (*setter)(struct archive *); } codes[] = { { ARCHIVE_FORMAT_7ZIP, archive_write_set_format_7zip }, |