From f731d398434e4d85a7aa0af7c299160f49e92fc9 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 2 Apr 2010 00:38:18 +0300 Subject: Update for recent Gnulib. * src/idest.h: Include gl_xlist.h. (set_frame_value): New proto. * src/idop.c (add_stringlist, add_field, frame_to_list): Static. * src/slist.c: Shut up gcc warnings. * gnulib.modules: Add xlist. * src/backup.c: Include unistd.h --- src/idop.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/idop.c') diff --git a/src/idop.c b/src/idop.c index 17e2bc4..1f95454 100644 --- a/src/idop.c +++ b/src/idop.c @@ -162,7 +162,7 @@ idest_ucs4_cvt(id3_ucs4_t const *ucs4) return (char*)id3_ucs4_utf8duplicate(ucs4); } -void +static void add_stringlist(gl_list_t list, struct id3_frame *frame, union id3_field *field) { @@ -181,7 +181,7 @@ add_stringlist(gl_list_t list, struct id3_frame *frame, } } -void +static void add_field(gl_list_t list, struct id3_frame *frame, union id3_field *field) { id3_ucs4_t const *ucs4; @@ -216,7 +216,7 @@ add_field(gl_list_t list, struct id3_frame *frame, union id3_field *field) } } -gl_list_t +static gl_list_t frame_to_list(struct id3_frame *frame) { gl_list_t list; @@ -224,7 +224,7 @@ frame_to_list(struct id3_frame *frame) union id3_field *field; list = new_string_list(true); - for (i = 0; field = id3_frame_field(frame, i); i++) + for (i = 0; (field = id3_frame_field(frame, i)); i++) add_field(list, frame, field); return list; } @@ -235,7 +235,7 @@ show_tags(struct id3_tag *tag) struct id3_frame *frame; unsigned i; - for (i = 0; frame = id3_tag_findframe(tag, NULL, i); i++) { + for (i = 0; (frame = id3_tag_findframe(tag, NULL, i)); i++) { gl_list_t list = frame_to_list(frame); if (gl_list_size(list) > 0) ed_list_add_item(frame->id, list); -- cgit v1.2.1