aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-02 17:22:54 +0100
committerMax Kellermann <max@duempel.org>2009-01-02 17:22:54 +0100
commit4b6d17a670138227cdd23df2d414c184cb84a41f (patch)
tree0bbc5cd7a3eacd6df8ee2b935de76cb0c7aa4d94 /src
parent9e46c320043ceab5e0aa788af03110561fe1a189 (diff)
downloadmpd-4b6d17a670138227cdd23df2d414c184cb84a41f.tar.gz
mpd-4b6d17a670138227cdd23df2d414c184cb84a41f.tar.xz
mpd-4b6d17a670138227cdd23df2d414c184cb84a41f.zip
database: use GLib instead of utils.h
Diffstat (limited to 'src')
-rw-r--r--src/database.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index 43ad5a9ab..9eadd17f7 100644
--- a/src/database.c
+++ b/src/database.c
@@ -25,7 +25,6 @@
#include "ls.h"
#include "path.h"
#include "stats.h"
-#include "utils.h"
#include "dbUtils.h"
#include "update.h"
#include "event_pipe.h"
@@ -38,6 +37,8 @@
#include <unistd.h>
#include <assert.h>
#include <string.h>
+#include <stdlib.h>
+#include <errno.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "database"
@@ -94,7 +95,7 @@ db_get_song(const char *file)
struct song *song = NULL;
struct directory *directory;
char *dir = NULL;
- char *duplicated = xstrdup(file);
+ char *duplicated = g_strdup(file);
char *shortname = strrchr(duplicated, '/');
g_debug("get song: %s", file);