]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use consistent function storage class
authorBrad King <brad.king@kitware.com>
Mon, 16 Nov 2009 16:29:10 +0000 (11:29 -0500)
committerBrad King <brad.king@kitware.com>
Mon, 16 Nov 2009 16:29:10 +0000 (11:29 -0500)
Functions declared 'static' should be defined 'static' too.

SVN-Revision: 1657

cpio/cpio.c
libarchive/archive_entry.c
libarchive/archive_read.c
libarchive/archive_write_disk.c
tar/util.c
tar/write.c

index c464ddef3f58446827be934204af6d170f6f8add..a67514b5044e4a5a76aa97ebdc62ccf7285d18cf 100644 (file)
@@ -374,7 +374,7 @@ main(int argc, char *argv[])
        return (0);
 }
 
-void
+static void
 usage(void)
 {
        const char      *p;
index 03dda1af52076fe2993fb69343b9d635d6dc54d1..f4aa096cdd7b029bbe5357f74256b287da5817ca 100644 (file)
@@ -1206,7 +1206,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)
 {
index 15fe2f8dc7af65335bd1e9476b66ff580c156918..f829a40082f4fbda7e5b32533c8d7c4aac6e608a 100644 (file)
@@ -767,7 +767,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;
index b0dbe3b4ad43bfc280c1dabc36841384d287dcb8..7ce314934e72023f3f069888b71a5d4a55f79f5c 100644 (file)
@@ -1074,7 +1074,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. */
index 9cf344a18a80ed806e8df5a1bcd0ee88193d80e3..0e66f3a15ac495866265a1629a19bbace8735a53 100644 (file)
@@ -299,7 +299,7 @@ do_chdir(struct bsdtar *bsdtar)
        bsdtar->pending_chdir = NULL;
 }
 
-const char *
+static const char *
 strip_components(const char *p, int elements)
 {
        /* Skip as many elements as necessary. */
index d4f20bca020ff0a6a647547bb7f58d2f7a21c40f..5eb95234afaa6e41720d6925a8cd1054607c9e3d 100644 (file)
@@ -512,7 +512,7 @@ cleanup:
  * cause the next line to be a directory to pass to chdir().  If
  * --null is specified, then a line "-C" is just another filename.
  */
-void
+static void
 archive_names_from_file(struct bsdtar *bsdtar, struct archive *a)
 {
        struct lafe_line_reader *lr;
@@ -1012,7 +1012,7 @@ write_file_data(struct bsdtar *bsdtar, struct archive *a,
 /*
  * Test if the specified file is new enough to include in the archive.
  */
-int
+static int
 new_enough(struct bsdtar *bsdtar, const char *path, const struct stat *st)
 {
        struct archive_dir_entry *p;
@@ -1099,7 +1099,7 @@ add_dir_list(struct bsdtar *bsdtar, const char *path,
        }
 }
 
-void
+static void
 test_for_append(struct bsdtar *bsdtar)
 {
        struct stat s;