[hackers] [dwm] applied Martin Hurton's view() simplification, not checking arg || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Mon, 18 Aug 2008 08:49:49 +0000 (UTC)

changeset: 1327:920833e10274
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Mon Aug 18 09:49:44 2008 +0100
files: dwm.c
description:
applied Martin Hurton's view() simplification, not checking arg

diff -r 158c50c241b5 -r 920833e10274 dwm.c
--- a/dwm.c Mon Aug 18 09:39:52 2008 +0100
+++ b/dwm.c Mon Aug 18 09:49:44 2008 +0100
@@ -1640,10 +1640,10 @@
 
 void
 view(const Arg *arg) {
- if(arg && (arg->ui & TAGMASK) == tagset[seltags])
+ if((arg->ui & TAGMASK) == tagset[seltags])
                 return;
         seltags ^= 1; /* toggle sel tagset */
- if(arg && (arg->ui & TAGMASK))
+ if(arg->ui & TAGMASK)
                 tagset[seltags] = arg->ui & TAGMASK;
         clearurgent();
         arrange();
Received on Mon Aug 18 2008 - 08:49:49 UTC

This archive was generated by hypermail 2.2.0 : Mon Aug 18 2008 - 09:00:08 UTC