summaryrefslogtreecommitdiff
path: root/hw/xwin/winwindow.c
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2014-02-28 15:02:14 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2014-03-03 14:32:57 +0000
commit0fc84a2bb6970f6b05a19cd8b32a7f3f7fd148b3 (patch)
tree64596d9184c371d30cffa3ab87b1b34db1afa4d4 /hw/xwin/winwindow.c
parent94f709cfce62e716f8d3adea388625850de71e78 (diff)
hw/xwin: Remove unnecessary casts from malloc/realloc/calloc calls
Remove unnecessary casts from malloc/realloc/calloc calls. This is the style used for the majority of X server code. Signed-off-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'hw/xwin/winwindow.c')
-rw-r--r--hw/xwin/winwindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winwindow.c b/hw/xwin/winwindow.c
index 759aa5eee..8c1c28f2a 100644
--- a/hw/xwin/winwindow.c
+++ b/hw/xwin/winwindow.c
@@ -155,7 +155,7 @@ winCopyWindowNativeGDI(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
nbox = RegionNumRects(prgnDst);
/* Allocate source points for each box */
- if (!(pptSrc = (DDXPointPtr) malloc(nbox * sizeof(DDXPointRec))))
+ if (!(pptSrc = malloc(nbox * sizeof(DDXPointRec))))
return;
/* Set an iterator pointer */