aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2014-09-06 16:18:08 +0000
committerokan2014-09-06 16:18:08 +0000
commit42beee08a73cd56e75481b5b32865d2b42d5f257 (patch)
tree9dd16ee3fd4c216b5c5009c6e76386554ff272b3 /menu.c
parent09c6df182c5227f2f6c12debe93eefeb2d0d8ce3 (diff)
downloadcwm-42beee08a73cd56e75481b5b32865d2b42d5f257.tar.gz
style nit
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index 1e8c1fb..a144336 100644
--- a/menu.c
+++ b/menu.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: menu.c,v 1.75 2014/02/01 19:28:46 okan Exp $
+ * $OpenBSD: menu.c,v 1.76 2014/09/06 16:18:08 okan Exp $
*/
#include <sys/param.h>
@@ -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.
*/
if ((mi = TAILQ_FIRST(resultq)) == NULL) {
- mi = xmalloc(sizeof *mi);
+ mi = xmalloc(sizeof(*mi));
(void)strlcpy(mi->text,
mc->searchstr, sizeof(mi->text));
mi->dummy = 1;
@@ -302,7 +302,7 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq,
mc->list = !mc->list;
break;
case CTL_ABORT:
- mi = xmalloc(sizeof *mi);
+ mi = xmalloc(sizeof(*mi));
mi->text[0] = '\0';
mi->dummy = 1;
mi->abort = 1;