[awesome-menu] Cosmetic changes; init var with nice value and remove else statement

This commit is contained in:
Julien Danjou 2008-03-08 14:56:55 +01:00
parent 86ab2f4764
commit 6c88ddc63e
1 changed files with 1 additions and 3 deletions

View File

@ -172,12 +172,10 @@ static void
complete(Bool reverse)
{
item_t *item = NULL;
item_t *(*item_iter)(item_t **, item_t *);
item_t *(*item_iter)(item_t **, item_t *) = item_list_next;
if(reverse)
item_iter = item_list_prev;
else
item_iter = item_list_next;
if(globalconf.item_selected)
item = item_iter(&globalconf.items, globalconf.item_selected);