From 01767efc2779327343d73200ecddb16e8eea7092 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Fri, 20 Apr 2012 20:01:34 +0200 Subject: [PATCH] remove redundant casts --- ioncore/mplexpholder.c | 2 +- mod_sp/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ioncore/mplexpholder.c b/ioncore/mplexpholder.c index 2c8461ee..c8143f2e 100644 --- a/ioncore/mplexpholder.c +++ b/ioncore/mplexpholder.c @@ -33,7 +33,7 @@ static void mplexpholder_do_link(WMPlexPHolder *ph, WMPlexPHolder *after, WLListNode *or_after) { - assert(mplex==(WMPlex*)ph->mplex && mplex!=NULL); + assert(mplex==ph->mplex && mplex!=NULL); if(after!=NULL){ assert(after->after==or_after); diff --git a/mod_sp/main.c b/mod_sp/main.c index 6d862457..28da9b0b 100644 --- a/mod_sp/main.c +++ b/mod_sp/main.c @@ -116,7 +116,7 @@ static WRegion *create(WMPlex *mplex, int flags) |MPLEX_ATTACH_PSEUDOMODAL); par.szplcy=SIZEPOLICY_FULL_EXACT; - sp=mplex_do_attach_new((WMPlex*)mplex, &par, + sp=mplex_do_attach_new(mplex, &par, create_scratchws, NULL); -- 2.11.4.GIT