diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2020-03-15 15:44:26 +0000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2021-10-23 19:26:23 +0100 |
commit | 0e0d31a7d2e7f66aab5a1c43579afbe864851200 (patch) | |
tree | 398a5d71d759de8818f8b0a81e84619d5bef97ce /libarchive/archive_read_support_filter_program.c | |
parent | 8649d2a8e82f1b50c9eaf528df96046fee7420db (diff) | |
download | libarchive-0e0d31a7d2e7f66aab5a1c43579afbe864851200.tar.gz |
reader: remove the return type of archive_read_filter_bidder_vtable::free
From over a dozen filters, only one instance has the vfunc... Always
returning ARCHIVE_OK.
Let's just remove the return type.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'libarchive/archive_read_support_filter_program.c')
-rw-r--r-- | libarchive/archive_read_support_filter_program.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libarchive/archive_read_support_filter_program.c b/libarchive/archive_read_support_filter_program.c index 55d971fa..1ba63b5d 100644 --- a/libarchive/archive_read_support_filter_program.c +++ b/libarchive/archive_read_support_filter_program.c @@ -98,7 +98,7 @@ struct program_bidder { static int program_bidder_bid(struct archive_read_filter_bidder *, struct archive_read_filter *upstream); static int program_bidder_init(struct archive_read_filter *); -static int program_bidder_free(struct archive_read_filter_bidder *); +static void program_bidder_free(struct archive_read_filter_bidder *); /* * The actual filter needs to track input and output data. @@ -175,13 +175,12 @@ memerr: return (ARCHIVE_FATAL); } -static int +static void program_bidder_free(struct archive_read_filter_bidder *self) { struct program_bidder *state = (struct program_bidder *)self->data; free_state(state); - return (ARCHIVE_OK); } static void |