diff options
author | Max Kellermann <max@duempel.org> | 2008-11-27 17:56:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-27 17:56:32 +0100 |
commit | 45352152fbdcac20b39161069406ad6d5288bd98 (patch) | |
tree | 0fd7d529b7680de22ce33b8cc670c8994ef455ee /src/screen_browser.c | |
parent | f7d53b74a7743e120f9f1019c594cbd2de708caf (diff) | |
download | mpd-45352152fbdcac20b39161069406ad6d5288bd98.tar.gz mpd-45352152fbdcac20b39161069406ad6d5288bd98.tar.xz mpd-45352152fbdcac20b39161069406ad6d5288bd98.zip |
list_window: use "bool" instead of "int"
For flags and return values, use the "bool" data type instead of
"int".
Diffstat (limited to '')
-rw-r--r-- | src/screen_browser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c index 3aeab0b33..4d911e0d7 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -119,7 +119,7 @@ browser_playlist_changed(struct screen_browser *browser, mpdclient_t *c, /* list_window callback */ const char * -browser_lw_callback(unsigned idx, int *highlight, void *data) +browser_lw_callback(unsigned idx, bool *highlight, void *data) { static char buf[BUFSIZE]; mpdclient_filelist_t *fl = (mpdclient_filelist_t *) data; @@ -134,7 +134,7 @@ browser_lw_callback(unsigned idx, int *highlight, void *data) entity = entry->entity; #ifndef NCMPC_MINI - *highlight = (entry->flags & HIGHLIGHT); + *highlight = (entry->flags & HIGHLIGHT) != 0; #else *highlight = false; #endif |