From 45b2b45285db636ece8fbb24890bd53d753e4eeb Mon Sep 17 00:00:00 2001 From: Bert Date: Mon, 17 Jan 2011 20:14:15 +0100 Subject: Small refactorings --- events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'events.c') diff --git a/events.c b/events.c index ad41de1..867b147 100644 --- a/events.c +++ b/events.c @@ -30,7 +30,7 @@ void on_expose(app_t *app, XEvent *ev) { } void on_configurenotify(app_t *app, XEvent *ev) { - if (app == NULL || ev == NULL) + if (!app || !ev) return; win_configure(&app->win, &ev->xconfigure); @@ -40,7 +40,7 @@ void on_keypress(app_t *app, XEvent *ev) { KeySym keysym; XKeyEvent *kev; - if (app == NULL || ev == NULL) + if (!app || !ev) return; kev = &ev->xkey; -- cgit v1.2.3