From eaa6a7a3e8f9b62e6aa139f976c243266628263f Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Fri, 16 Oct 2015 20:35:32 +0200 Subject: [PATCH] srzip: Avoid recent-ish zip_file_add() --- src/output/srzip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/srzip.c b/src/output/srzip.c index c562e604..c101d3b2 100644 --- a/src/output/srzip.c +++ b/src/output/srzip.c @@ -82,7 +82,7 @@ static int zip_create(const struct sr_output *o) /* "version" */ versrc = zip_source_buffer(zipfile, "2", 1, FALSE); - if (zip_file_add(zipfile, "version", versrc, 0) < 0) { + if (zip_add(zipfile, "version", versrc) < 0) { sr_err("Error saving version into zipfile: %s", zip_strerror(zipfile)); zip_source_free(versrc); @@ -118,7 +118,7 @@ static int zip_create(const struct sr_output *o) g_key_file_free(meta); metasrc = zip_source_buffer(zipfile, metabuf, metalen, FALSE); - if (zip_file_add(zipfile, "metadata", metasrc, 0) < 0) { + if (zip_add(zipfile, "metadata", metasrc) < 0) { sr_err("Error saving metadata into zipfile: %s", zip_strerror(zipfile)); zip_source_free(metasrc);