summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a14b6d)
raw | patch | inline | side by side (parent: 6a14b6d)
author | Max Kellermann <max@duempel.org> | |
Sat, 14 Nov 2009 01:42:30 +0000 (02:42 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 14 Nov 2009 01:42:30 +0000 (02:42 +0100) |
src/status_bar.c | patch | blob | history |
diff --git a/src/status_bar.c b/src/status_bar.c
index 4ccb6e3e42880fda3e9987f1192e00efb08227fc..2803b28745a8f1214ad69759402f781a89bb2277 100644 (file)
--- a/src/status_bar.c
+++ b/src/status_bar.c
WINDOW *w = p->window.w;
enum mpd_state state;
int elapsedTime = 0;
-#ifdef NCMPC_MINI
- static char bitrate[1];
-#else
- char bitrate[16];
-#endif
const char *str = NULL;
int x = 0;
char buffer[p->window.cols * 4 + 1];
if (state == MPD_STATE_PLAY || state == MPD_STATE_PAUSE) {
int total_time = mpd_status_get_total_time(status);
if (total_time > 0) {
+#ifdef NCMPC_MINI
+ static const char bitrate[1];
+#else
+ char bitrate[16];
+#endif
char elapsed_string[32], duration_string[32];
/*checks the conf to see whether to display elapsed or remaining time */