aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_write_set_format.c
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2017-03-28 09:58:54 +0000
committerMartin Matuska <mm@FreeBSD.org>2017-03-28 09:58:54 +0000
commit782ceec6db44f98526c6423f7e08dc12851ea20c (patch)
treeb277ce334aec94ff96d12407fb7f073f4cd2dc1b /libarchive/archive_write_set_format.c
parent854870e4b3e6d2880cd9f98725551dde47caea79 (diff)
downloadsrc-782ceec6db44f98526c6423f7e08dc12851ea20c.tar.gz
src-782ceec6db44f98526c6423f7e08dc12851ea20c.zip
Update vendor/libarchive to git 13b0ed2ba504389c363cd302041fe10afa1837ad
Vendor changes (FreeBSD-related): - constify variables in several places - unify platform ACL code in a single source file - fix unused variable if compiling on FreeBSD without NFSv4 ACL support
Notes
Notes: svn path=/vendor/libarchive/dist/; revision=316083
Diffstat (limited to 'libarchive/archive_write_set_format.c')
-rw-r--r--libarchive/archive_write_set_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_write_set_format.c b/libarchive/archive_write_set_format.c
index 744302d06775..0f706231add1 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 },