From e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 14 Dec 2011 13:42:21 +0100 Subject: Increase warning leaves, and fix new occured ones --- src/interface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/interface.c') diff --git a/src/interface.c b/src/interface.c index 4af03c0..57891b9 100644 --- a/src/interface.c +++ b/src/interface.c @@ -93,13 +93,14 @@ print_input_list(struct context *ctx, struct sink_info *sink, { struct sink_input_info *input; gint offset = *poffset; + gboolean selected; gint i = -1; list_foreach(ctx->input_list, input) { if (input->sink != sink->index) continue; - gboolean selected = (ctx->chooser_sink == sink_num && - ctx->chooser_input == ++i); + selected = (ctx->chooser_sink == sink_num && + ctx->chooser_input == ++i); if (selected) wattron(ctx->menu_win, A_REVERSE); -- cgit