diff options
author | Max Kellermann <max@duempel.org> | 2009-01-02 17:56:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-02 17:56:08 +0100 |
commit | 11832367975b09b4e39e3acb994de005adf907d2 (patch) | |
tree | 6357d53133a011db50c8169fe2036ab170a09e50 /src/output/alsa_plugin.c | |
parent | 051e906d851409e4f14134ed9eb0234ccac202be (diff) | |
download | mpd-11832367975b09b4e39e3acb994de005adf907d2.tar.gz mpd-11832367975b09b4e39e3acb994de005adf907d2.tar.xz mpd-11832367975b09b4e39e3acb994de005adf907d2.zip |
alsa: use GLib instead of utils.h
Diffstat (limited to 'src/output/alsa_plugin.c')
-rw-r--r-- | src/output/alsa_plugin.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c index 960a4836b..b33ee39d8 100644 --- a/src/output/alsa_plugin.c +++ b/src/output/alsa_plugin.c @@ -17,7 +17,6 @@ */ #include "../output_api.h" -#include "../utils.h" #include "../mixer.h" #include <glib.h> @@ -65,7 +64,7 @@ alsa_device(const AlsaData *ad) static AlsaData *newAlsaData(void) { - AlsaData *ret = xmalloc(sizeof(AlsaData)); + AlsaData *ret = g_new(AlsaData, 1); ret->device = NULL; ret->mode = 0; @@ -93,7 +92,7 @@ alsa_configure(AlsaData *ad, ConfigParam *param) BlockParam *bp; if ((bp = getBlockParam(param, "device"))) - ad->device = xstrdup(bp->value); + ad->device = g_strdup(bp->value); ad->useMmap = getBoolBlockParam(param, "use_mmap", 1); if (ad->useMmap == CONF_BOOL_UNSET) |