From f7fd5ad843a8deddc8b61b0ebda2b97942b408c7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 May 2018 16:01:14 +0200 Subject: use correct type for state --- mpd-notification.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf