summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_set_format_ar.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2010-03-01 11:49:07 -0500
committerTim Kientzle <kientzle@gmail.com>2010-03-01 11:49:07 -0500
commit659c59dce14e6346f8692305ed0f2288f3be1b2f (patch)
tree33300c6855f1b66ce5393c5937eaa6ddffee4d09 /libarchive/archive_write_set_format_ar.c
parent42c1f3e1243e684bc003d857450496a274d16a31 (diff)
downloadlibarchive-659c59dce14e6346f8692305ed0f2288f3be1b2f.tar.gz
Rename 'finish' to 'close' and 'destroy' to 'free', to clarify
the new/open/close/free lifecycle terminology. SVN-Revision: 2004
Diffstat (limited to 'libarchive/archive_write_set_format_ar.c')
-rw-r--r--libarchive/archive_write_set_format_ar.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libarchive/archive_write_set_format_ar.c b/libarchive/archive_write_set_format_ar.c
index efe2725f..715f1d1d 100644
--- a/libarchive/archive_write_set_format_ar.c
+++ b/libarchive/archive_write_set_format_ar.c
@@ -75,8 +75,8 @@ static int archive_write_ar_header(struct archive_write *,
struct archive_entry *);
static ssize_t archive_write_ar_data(struct archive_write *,
const void *buff, size_t s);
-static int archive_write_ar_destroy(struct archive_write *);
-static int archive_write_ar_finish(struct archive_write *);
+static int archive_write_ar_free(struct archive_write *);
+static int archive_write_ar_close(struct archive_write *);
static int archive_write_ar_finish_entry(struct archive_write *);
static const char *ar_basename(const char *path);
static int format_octal(int64_t v, char *p, int s);
@@ -123,8 +123,8 @@ archive_write_set_format_ar(struct archive_write *a)
struct ar_w *ar;
/* If someone else was already registered, unregister them. */
- if (a->format_destroy != NULL)
- (a->format_destroy)(a);
+ if (a->format_free != NULL)
+ (a->format_free)(a);
ar = (struct ar_w *)malloc(sizeof(*ar));
if (ar == NULL) {
@@ -137,8 +137,8 @@ archive_write_set_format_ar(struct archive_write *a)
a->format_name = "ar";
a->format_write_header = archive_write_ar_header;
a->format_write_data = archive_write_ar_data;
- a->format_finish = archive_write_ar_finish;
- a->format_destroy = archive_write_ar_destroy;
+ a->format_close = archive_write_ar_close;
+ a->format_free = archive_write_ar_free;
a->format_finish_entry = archive_write_ar_finish_entry;
return (ARCHIVE_OK);
}
@@ -394,7 +394,7 @@ archive_write_ar_data(struct archive_write *a, const void *buff, size_t s)
}
static int
-archive_write_ar_destroy(struct archive_write *a)
+archive_write_ar_free(struct archive_write *a)
{
struct ar_w *ar;
@@ -414,7 +414,7 @@ archive_write_ar_destroy(struct archive_write *a)
}
static int
-archive_write_ar_finish(struct archive_write *a)
+archive_write_ar_close(struct archive_write *a)
{
struct ar_w *ar;
int ret;