diff --git a/src/main.c b/src/main.c
index 1d93b69fc524364dfa9398fef5518201398efa6a..6a6ba34f36bf4ff5c3b9ca8adfe3e8c414a10cfc 100644 (file)
--- a/src/main.c
+++ b/src/main.c
static gboolean connected = FALSE;
static GTimer *timer = NULL;
static gboolean connected = FALSE;
static GTimer *timer = NULL;
-static gchar *
-error_msg(gchar *msg)
+static const gchar *
+error_msg(const gchar *msg)
{
gchar *p;
{
gchar *p;
}
static void
}
static void
-error_callback(mpdclient_t *c, gint error, gchar *msg)
+error_callback(mpdclient_t *c, gint error, const gchar *msg)
{
gint code = GET_ACK_ERROR_CODE(error);
{
gint code = GET_ACK_ERROR_CODE(error);
}
}
}
}
-void
+static void
exit_and_cleanup(void)
{
screen_exit();
exit_and_cleanup(void)
{
screen_exit();
g_timer_destroy(timer);
}
g_timer_destroy(timer);
}
-void
+static void
catch_sigint( int sig )
{
printf("\n%s\n", _("Exiting..."));
exit(EXIT_SUCCESS);
}
catch_sigint( int sig )
{
printf("\n%s\n", _("Exiting..."));
exit(EXIT_SUCCESS);
}
-void
+
+static void
catch_sigcont( int sig )
{
D("catch_sigcont()\n");
catch_sigcont( int sig )
{
D("catch_sigcont()\n");
#ifndef NDEBUG
void
#ifndef NDEBUG
void
-D(char *format, ...)
+D(const char *format, ...)
{
if( options.debug )
{
{
if( options.debug )
{