aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpd-notification.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 1bdb55a..743bf9a 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -226,7 +226,8 @@ int main(int argc, char ** argv) {
char * notifystr = NULL;
GdkPixbuf * pixbuf = NULL;
GError * error = NULL;
- unsigned short int errcount = 0, state = MPD_STATE_UNKNOWN;
+ unsigned short int errcount = 0;
+ enum mpd_state state = MPD_STATE_UNKNOWN;
const char * mpd_host, * mpd_port_str, * music_dir, * uri = NULL;
unsigned mpd_port = MPD_PORT, mpd_timeout = MPD_TIMEOUT, notification_timeout = NOTIFICATION_TIMEOUT;
struct mpd_song * song = NULL;