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_add_filter_program.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_add_filter_program.c')
-rw-r--r-- | libarchive/archive_write_add_filter_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_write_add_filter_program.c b/libarchive/archive_write_add_filter_program.c index 55b5e8ec..660f693f 100644 --- a/libarchive/archive_write_add_filter_program.c +++ b/libarchive/archive_write_add_filter_program.c @@ -92,7 +92,7 @@ archive_write_add_filter_program(struct archive *_a, const char *cmd) { struct archive_write_filter *f = __archive_write_allocate_filter(_a); struct private_data *data; - static const char *prefix = "Program: "; + static const char prefix[] = "Program: "; archive_check_magic(_a, ARCHIVE_WRITE_MAGIC, ARCHIVE_STATE_NEW, "archive_write_add_filter_program"); |