From d68bdd9253084b00edebefeae250d710c235b9dc Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 7 Mar 2019 13:24:44 +0000 Subject: check cc->gc directly --- client.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index ef4a766..0c4bd3d 100644 --- a/client.c +++ b/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.253 2019/03/07 13:14:41 okan Exp $ + * $OpenBSD: client.c,v 1.254 2019/03/07 13:24:44 okan Exp $ */ #include @@ -960,12 +960,11 @@ void client_htile(struct client_ctx *cc) { struct client_ctx *ci; - struct group_ctx *gc = cc->gc; struct screen_ctx *sc = cc->sc; struct geom area; int i, n, mh, x, w, h; - if (!gc) + if (!cc->gc) return; i = n = 0; @@ -1032,12 +1031,11 @@ void client_vtile(struct client_ctx *cc) { struct client_ctx *ci; - struct group_ctx *gc = cc->gc; struct screen_ctx *sc = cc->sc; struct geom area; int i, n, mw, y, w, h; - if (!gc) + if (!cc->gc) return; i = n = 0; -- cgit v1.2.3-2-gb3c3