summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-04 22:25:35 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-04 22:25:35 (GMT)
commit593bb64d160896c721a33c0247aa14d47f7fc5ac (patch)
tree387060fc3df6e3ae075d98fbbda86352a20a95c7
parent4c6f63a4090e844295c1eed89394c06dfe974863 (diff)
downloadCMake-593bb64d160896c721a33c0247aa14d47f7fc5ac.zip
CMake-593bb64d160896c721a33c0247aa14d47f7fc5ac.tar.gz
CMake-593bb64d160896c721a33c0247aa14d47f7fc5ac.tar.bz2
libarchive: Use consistent function storage class
Functions declared 'static' should be defined 'static' too.
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_entry.c2
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_read.c2
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_write_disk.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_entry.c b/Utilities/cmlibarchive/libarchive/archive_entry.c
index 9c55071..d75dde5 100644
--- a/Utilities/cmlibarchive/libarchive/archive_entry.c
+++ b/Utilities/cmlibarchive/libarchive/archive_entry.c
@@ -1199,7 +1199,7 @@ archive_entry_acl_add_entry_w(struct archive_entry *entry,
archive_entry_acl_add_entry_w_len(entry, type, permset, tag, id, name, wcslen(name));
}
-void
+static void
archive_entry_acl_add_entry_w_len(struct archive_entry *entry,
int type, int permset, int tag, int id, const wchar_t *name, size_t len)
{
diff --git a/Utilities/cmlibarchive/libarchive/archive_read.c b/Utilities/cmlibarchive/libarchive/archive_read.c
index cd4416c..e4bdaa6 100644
--- a/Utilities/cmlibarchive/libarchive/archive_read.c
+++ b/Utilities/cmlibarchive/libarchive/archive_read.c
@@ -768,7 +768,7 @@ _archive_read_close(struct archive *_a)
/*
* Release memory and other resources.
*/
-int
+static int
_archive_read_finish(struct archive *_a)
{
struct archive_read *a = (struct archive_read *)_a;
diff --git a/Utilities/cmlibarchive/libarchive/archive_write_disk.c b/Utilities/cmlibarchive/libarchive/archive_write_disk.c
index fb018b4..8221a9f 100644
--- a/Utilities/cmlibarchive/libarchive/archive_write_disk.c
+++ b/Utilities/cmlibarchive/libarchive/archive_write_disk.c
@@ -1064,7 +1064,7 @@ restore_entry(struct archive_write_disk *a)
* the failed system call. Note: This function should only ever perform
* a single system call.
*/
-int
+static int
create_filesystem_object(struct archive_write_disk *a)
{
/* Create the entry. */