aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue_save.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-25 12:43:05 +0200
committerMax Kellermann <max@duempel.org>2010-07-25 12:43:18 +0200
commit63c9a20f96dff970cfbc76f2eebc6162abd056f6 (patch)
treef124f1033b92af87c9b98bbd7af6be3dee47cb9e /src/queue_save.c
parentb40c0811f4b9caba5e91dd829da1641fdbb3a890 (diff)
downloadmpd-63c9a20f96dff970cfbc76f2eebc6162abd056f6.tar.gz
mpd-63c9a20f96dff970cfbc76f2eebc6162abd056f6.tar.xz
mpd-63c9a20f96dff970cfbc76f2eebc6162abd056f6.zip
queue_save: queue_load_song() returns void
The only caller doesn't use its return value, and the value isn't useful anyway.
Diffstat (limited to 'src/queue_save.c')
-rw-r--r--src/queue_save.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/queue_save.c b/src/queue_save.c
index 4eb095a59..69ef483b3 100644
--- a/src/queue_save.c
+++ b/src/queue_save.c
@@ -53,7 +53,7 @@ get_song(const char *uri)
return NULL;
}
-int
+void
queue_load_song(struct queue *queue, const char *line)
{
long ret;
@@ -61,20 +61,19 @@ queue_load_song(struct queue *queue, const char *line)
struct song *song;
if (queue_is_full(queue))
- return -1;
+ return;
ret = strtol(line, &endptr, 10);
if (ret < 0 || *endptr != ':' || endptr[1] == 0) {
g_warning("Malformed playlist line in state file");
- return -1;
+ return;
}
line = endptr + 1;
song = get_song(line);
if (song == NULL)
- return -1;
+ return;
queue_append(queue, song);
- return ret;
}