KNF, no binary change.

From Pierre Riteau. Thanks!
This commit is contained in:
oga
2008-05-15 22:18:00 +00:00
parent ec77265b87
commit 5034a77849
9 changed files with 28 additions and 30 deletions

View File

@@ -272,10 +272,10 @@ group_menu(XButtonEvent *e)
XCALLOC(mi, struct menu);
if (gc->hidden)
snprintf(mi->text, sizeof(mi->text), "%d: [%s]",
gc->shortcut, gc->name);
gc->shortcut, gc->name);
else
snprintf(mi->text, sizeof(mi->text), "%d: %s",
gc->shortcut, gc->name);
gc->shortcut, gc->name);
mi->ctx = gc;
TAILQ_INSERT_TAIL(&menuq, mi, entry);
}
@@ -295,7 +295,7 @@ group_menu(XButtonEvent *e)
else
_group_hide(gc);
cleanup:
cleanup:
while ((mi = TAILQ_FIRST(&menuq)) != NULL) {
TAILQ_REMOVE(&menuq, mi, entry);
xfree(mi);