Przeglądaj źródła

libarchive: Use consistent function storage class

Functions declared 'static' should be defined 'static' too.
Brad King 16 lat temu
rodzic
commit
593bb64d16

+ 1 - 1
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)
 {

+ 1 - 1
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;

+ 1 - 1
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. */