From 4b6d17a670138227cdd23df2d414c184cb84a41f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 2 Jan 2009 17:22:54 +0100 Subject: database: use GLib instead of utils.h --- src/database.c | 5 +++-- 1 file 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 #include #include +#include +#include #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); -- cgit v1.2.3