From: Daniel Elstner Date: Fri, 16 Oct 2015 18:35:32 +0000 (+0200) Subject: srzip: Avoid recent-ish zip_file_add() X-Git-Tag: libsigrok-0.4.0~223 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eaa6a7a3e8f9b62e6aa139f976c243266628263f;p=libsigrok.git srzip: Avoid recent-ish zip_file_add() --- 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);