X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fmain.c;h=6a6ba34f36bf4ff5c3b9ca8adfe3e8c414a10cfc;hb=76a8fab4adc293982f355609b89dde88d5f355e0;hp=1d93b69fc524364dfa9398fef5518201398efa6a;hpb=4ebba1b36f4f171fb5daa25a8578e21d2740c517;p=ncmpc.git diff --git a/src/main.c b/src/main.c index 1d93b69..6a6ba34 100644 --- a/src/main.c +++ b/src/main.c @@ -44,8 +44,8 @@ static mpdclient_t *mpd = 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; @@ -58,7 +58,7 @@ error_msg(gchar *msg) } 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); @@ -108,7 +108,7 @@ update_xterm_title(void) } } -void +static void exit_and_cleanup(void) { screen_exit(); @@ -128,14 +128,15 @@ exit_and_cleanup(void) g_timer_destroy(timer); } -void +static void catch_sigint( int sig ) { printf("\n%s\n", _("Exiting...")); exit(EXIT_SUCCESS); } -void + +static void catch_sigcont( int sig ) { D("catch_sigcont()\n"); @@ -156,7 +157,7 @@ sigstop(void) #ifndef NDEBUG void -D(char *format, ...) +D(const char *format, ...) { if( options.debug ) {