summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_set_format_warc.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-03-23 02:26:52 -0400
committerMike Frysinger <vapier@gentoo.org>2017-03-23 13:28:26 -0400
commit872a761591806bbbf069e057d9dc0301f338f08d (patch)
treefcc9663a649803908210413d16fa059f21d1b9f9 /libarchive/archive_write_set_format_warc.c
parent4fb11600dd38b0b32f16bd4539b32bdc84738736 (diff)
downloadlibarchive-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_warc.c')
-rw-r--r--libarchive/archive_write_set_format_warc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_write_set_format_warc.c b/libarchive/archive_write_set_format_warc.c
index 8b6daf94..edad072c 100644
--- a/libarchive/archive_write_set_format_warc.c
+++ b/libarchive/archive_write_set_format_warc.c
@@ -354,7 +354,7 @@ static ssize_t
_popul_ehdr(struct archive_string *tgt, size_t tsz, warc_essential_hdr_t hdr)
{
static const char _ver[] = "WARC/1.0\r\n";
- static const char *_typ[LAST_WT] = {
+ static const char * const _typ[LAST_WT] = {
NULL, "warcinfo", "metadata", "resource", NULL
};
char std_uuid[48U];