From: epg@pretzelnet.org <> Date: Fri, 2 Nov 2012 07:47:52 +0000 (-0700) Subject: rename X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/4601d7cc2cd896acc9b645aa3708e1aebc8656f6?ds=sidebyside;hp=86a3c2822430df3efe7f7ca2604307c735ac6425 rename --- diff --git a/taglib.cc b/apic-write.cc similarity index 99% rename from taglib.cc rename to apic-write.cc index 750bd87..178c5b6 100644 --- a/taglib.cc +++ b/apic-write.cc @@ -103,7 +103,7 @@ main(int argc, char **argv) const char *mp3_path = argv[0]; char *image_bytes; - size_t image_len; + ssize_t image_len; if (argc == 2) { const char *image_path = argv[1]; int fd = open(image_path, O_RDONLY); @@ -129,7 +129,6 @@ main(int argc, char **argv) printf("mp3: %s imagelen: %ld desc: %s mime: %s\n", mp3_path, (long)image_len, description, mime_type); - return 0; const char *result = taglib_apic(mp3_path, image_bytes, image_len, description, mime_type); if (result != 0) {