summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-10-19 23:03:56 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-10-19 23:04:39 +0200
commit2d9ad6d33aabafa51f05598cce3eda72bf815da8 (patch)
tree95c6b342833a774df36efb2d16ba4a94dc19be1f
parent4fda94eb6cc16b314b6f92a1e991ea0df2786531 (diff)
downloadpa-sink-ctl-2d9ad6d33aabafa51f05598cce3eda72bf815da8.tar.gz
pa-sink-ctl-2d9ad6d33aabafa51f05598cce3eda72bf815da8.tar.bz2
pa-sink-ctl-2d9ad6d33aabafa51f05598cce3eda72bf815da8.zip
interface_set_status: Rename "save" to "status"
-rw-r--r--src/interface.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/interface.c b/src/interface.c
index acd4439..b0f221c 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -337,15 +337,16 @@ interface_clear(void)
void
interface_set_status(const gchar *msg)
{
- static gchar *save = NULL;
+ static gchar *status = NULL;
+
if (msg != NULL) {
- g_free(save);
- save = g_strdup(msg);
+ g_free(status);
+ status = g_strdup(msg);
}
werase(msg_win);
box(msg_win, 0, 0);
- if (save != NULL)
- mvwprintw(msg_win, 1, 1, save);
+ if (status != NULL)
+ mvwprintw(msg_win, 1, 1, status);
wrefresh(msg_win);
refresh();
}