aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2014-01-24 15:08:06 +0000
committerokan2014-01-24 15:08:06 +0000
commitcf1e87004c16c940a945e3d49b0552c80276ed10 (patch)
treeba4d049bf5c7dacaa8722f48a166630d62c8c458 /group.c
parentc18fc20f4cc50da0602988a8332896f3b380641c (diff)
downloadcwm-cf1e87004c16c940a945e3d49b0552c80276ed10.tar.gz
correct arguments and drop the cast.
sanity check by oga@nicotinebsd
Diffstat (limited to 'group.c')
-rw-r--r--group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/group.c b/group.c
index 7f8addd..1d117b4 100644
--- a/group.c
+++ b/group.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: group.c,v 1.83 2014/01/20 18:58:03 okan Exp $
+ * $OpenBSD: group.c,v 1.84 2014/01/24 15:08:06 okan Exp $
*/
#include <sys/param.h>
@@ -105,7 +105,7 @@ group_show(struct screen_ctx *sc, struct group_ctx *gc)
if (cc->stackingorder > gc->highstack)
gc->highstack = cc->stackingorder;
}
- winlist = (Window *) xcalloc(sizeof(*winlist), (gc->highstack + 1));
+ winlist = xcalloc((gc->highstack + 1), sizeof(*winlist));
/*
* Invert the stacking order as XRestackWindows() expects them