diff options
author | Christian Hesse <mail@eworm.de> | 2018-05-28 16:01:14 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-05-28 16:01:14 +0200 |
commit | f7fd5ad843a8deddc8b61b0ebda2b97942b408c7 (patch) | |
tree | 60bcb76a795b561dcd642e72cce97881364e8383 | |
parent | 6ff60a4a018cbbcf8fad562d000f14f1607c2f4e (diff) | |
download | mpd-notification-f7fd5ad843a8deddc8b61b0ebda2b97942b408c7.tar.gz mpd-notification-f7fd5ad843a8deddc8b61b0ebda2b97942b408c7.tar.zst |
use correct type for state
-rw-r--r-- | mpd-notification.c | 3 |
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; |