[asterisk-commits] branch group/autoconf_and_menuselect r16807 -
/team/group/autoconf_and_menuse...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Mar 31 14:56:09 MST 2006
Author: russell
Date: Fri Mar 31 15:56:07 2006
New Revision: 16807
URL: http://svn.digium.com/view/asterisk?rev=16807&view=rev
Log: (empty)
Modified:
team/group/autoconf_and_menuselect/build_tools/menuselect.c
Modified: team/group/autoconf_and_menuselect/build_tools/menuselect.c
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/build_tools/menuselect.c?rev=16807&r1=16806&r2=16807&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/build_tools/menuselect.c (original)
+++ team/group/autoconf_and_menuselect/build_tools/menuselect.c Fri Mar 31 15:56:07 2006
@@ -595,11 +595,11 @@
wclear(menu);
AST_LIST_TRAVERSE(&categories, cat, list) {
- wmove(menu, i, max_x / 2 - 10);
+ wmove(menu, i++, max_x / 2 - 10);
if (!strlen_zero(cat->displayname))
- snprintf(buf, sizeof(buf), "%d.%s %s", ++i, i < 10 ? " " : "", cat->displayname);
+ snprintf(buf, sizeof(buf), "%d.%s %s", i, i < 10 ? " " : "", cat->displayname);
else
- snprintf(buf, sizeof(buf), "%d.%s %s", ++i, i < 10 ? " " : "", cat->name);
+ snprintf(buf, sizeof(buf), "%d.%s %s", i, i < 10 ? " " : "", cat->name);
waddstr(menu, buf);
}
@@ -647,10 +647,11 @@
continue;
}
wmove(menu, j++, max_x / 2 - 10);
+ i++;
if (mem->depsfailed)
- snprintf(buf, sizeof(buf), "XXX %d.%s %s", ++i, i < 10 ? " " : "", mem->name);
+ snprintf(buf, sizeof(buf), "XXX %d.%s %s", i, i < 10 ? " " : "", mem->name);
else
- snprintf(buf, sizeof(buf), "[%s] %d.%s %s", mem->enabled ? "*" : " ", ++i, i < 10 ? " " : "", mem->name);
+ snprintf(buf, sizeof(buf), "[%s] %d.%s %s", mem->enabled ? "*" : " ", i, i < 10 ? " " : "", mem->name);
waddstr(menu, buf);
if (i == end)
break;
More information about the asterisk-commits
mailing list