mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
style nit
This commit is contained in:
parent
5cd4cce3a0
commit
140f8b9eba
4
menu.c
4
menu.c
@ -260,7 +260,7 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq,
|
|||||||
* even if dummy is zero, we need to return something.
|
* even if dummy is zero, we need to return something.
|
||||||
*/
|
*/
|
||||||
if ((mi = TAILQ_FIRST(resultq)) == NULL) {
|
if ((mi = TAILQ_FIRST(resultq)) == NULL) {
|
||||||
mi = xmalloc(sizeof *mi);
|
mi = xmalloc(sizeof(*mi));
|
||||||
(void)strlcpy(mi->text,
|
(void)strlcpy(mi->text,
|
||||||
mc->searchstr, sizeof(mi->text));
|
mc->searchstr, sizeof(mi->text));
|
||||||
mi->dummy = 1;
|
mi->dummy = 1;
|
||||||
@ -302,7 +302,7 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq,
|
|||||||
mc->list = !mc->list;
|
mc->list = !mc->list;
|
||||||
break;
|
break;
|
||||||
case CTL_ABORT:
|
case CTL_ABORT:
|
||||||
mi = xmalloc(sizeof *mi);
|
mi = xmalloc(sizeof(*mi));
|
||||||
mi->text[0] = '\0';
|
mi->text[0] = '\0';
|
||||||
mi->dummy = 1;
|
mi->dummy = 1;
|
||||||
mi->abort = 1;
|
mi->abort = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user