aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-14 18:32:31 +0000
committerKalle Wallin <kaw@linux.se>2004-06-14 18:32:31 +0000
commit39758c8503fb5390afaceeff3dd5b0bca75feb97 (patch)
tree94f42a18c5cb0da8778e8525ded49fb98012bbfc /src/support.c
parent7844008980d4d1b9cb7cbd4dda4ae912e12dd7a9 (diff)
downloadmpd-39758c8503fb5390afaceeff3dd5b0bca75feb97.tar.gz
mpd-39758c8503fb5390afaceeff3dd5b0bca75feb97.tar.xz
mpd-39758c8503fb5390afaceeff3dd5b0bca75feb97.zip
Major cleanup of the mpd client code (mpc->mpdclient)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1481 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/support.c')
-rw-r--r--src/support.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/support.c b/src/support.c
index 23b67d3e7..90ecb8b0d 100644
--- a/src/support.c
+++ b/src/support.c
@@ -1,7 +1,7 @@
/*
* $Id$
*
- * (c) 2004 by Kalle Wallin (kaw@linux.se)
+ * (c) 2004 by Kalle Wallin <kaw@linux.se>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,6 +18,7 @@
*
*/
+#include <time.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
@@ -184,7 +185,7 @@ utf8_to_locale(char *utf8str)
g_get_charset(&charset);
screen_status_printf(_("Error: Unable to convert characters to %s"),
charset);
- D(g_printerr("utf8_to_locale(): %s\n", error->message));
+ D("utf8_to_locale(): %s\n", error->message);
g_error_free(error);
return g_strdup(utf8str);
}
@@ -212,7 +213,7 @@ locale_to_utf8(char *localestr)
if( error )
{
screen_status_printf(_("Error: Unable to convert characters to UTF-8"));
- D(g_printerr("locale_to_utf8: %s\n", error->message));
+ D("locale_to_utf8: %s\n", error->message);
g_error_free(error);
return g_strdup(localestr);
}