summaryrefslogtreecommitdiffabout
path: root/src/idop.c
authorSergey Poznyakoff <gray@gnu.org.ua>2010-04-01 21:38:18 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-04-01 21:38:18 (GMT)
commitf731d398434e4d85a7aa0af7c299160f49e92fc9 (patch) (side-by-side diff)
treecab66782ca21ada8879df091b4ba80fb320babca /src/idop.c
parent94833cc27ffdb8804ec8916e3fc302da7282ec0f (diff)
downloadidest-f731d398434e4d85a7aa0af7c299160f49e92fc9.tar.gz
idest-f731d398434e4d85a7aa0af7c299160f49e92fc9.tar.bz2
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
Diffstat (limited to 'src/idop.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/idop.c10
1 files changed, 5 insertions, 5 deletions
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);

Return to:

Send suggestions and report system problems to the System administrator.