aboutsummaryrefslogtreecommitdiffstats
path: root/src/stored_playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-02 17:22:47 +0100
committerMax Kellermann <max@duempel.org>2009-01-02 17:22:47 +0100
commit9e46c320043ceab5e0aa788af03110561fe1a189 (patch)
tree746d3755905094ca50ef2be476dd89b124dc7aaf /src/stored_playlist.c
parentcc4e0a786deb268a30798fb6e93a151a49ed4cea (diff)
downloadmpd-9e46c320043ceab5e0aa788af03110561fe1a189.tar.gz
mpd-9e46c320043ceab5e0aa788af03110561fe1a189.tar.xz
mpd-9e46c320043ceab5e0aa788af03110561fe1a189.zip
playlist: use GLib instead of utils.h
Diffstat (limited to 'src/stored_playlist.c')
-rw-r--r--src/stored_playlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stored_playlist.c b/src/stored_playlist.c
index fa1ae7cc9..a21feeeee 100644
--- a/src/stored_playlist.c
+++ b/src/stored_playlist.c
@@ -21,7 +21,6 @@
#include "song.h"
#include "mapper.h"
#include "path.h"
-#include "utils.h"
#include "ls.h"
#include "database.h"
#include "idle.h"
@@ -32,6 +31,7 @@
#include <unistd.h>
#include <dirent.h>
#include <string.h>
+#include <errno.h>
static struct stored_playlist_info *
load_playlist_info(const char *parent_path_fs, const char *name_fs)
@@ -179,7 +179,7 @@ spl_load(const char *utf8path)
s = song_get_url(song, path_max_tmp);
}
- g_ptr_array_add(list, xstrdup(s));
+ g_ptr_array_add(list, g_strdup(s));
if (list->len >= playlist_max_length)
break;