diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2014-02-28 15:02:14 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-03-03 14:32:57 +0000 |
commit | 0fc84a2bb6970f6b05a19cd8b32a7f3f7fd148b3 (patch) | |
tree | 64596d9184c371d30cffa3ab87b1b34db1afa4d4 /hw/xwin/winallpriv.c | |
parent | 94f709cfce62e716f8d3adea388625850de71e78 (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/winallpriv.c')
-rw-r--r-- | hw/xwin/winallpriv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xwin/winallpriv.c b/hw/xwin/winallpriv.c index cc3b3d1ba..629af92c9 100644 --- a/hw/xwin/winallpriv.c +++ b/hw/xwin/winallpriv.c @@ -58,7 +58,7 @@ winAllocatePrivates(ScreenPtr pScreen) } /* Allocate memory for the screen private structure */ - pScreenPriv = (winPrivScreenPtr) malloc(sizeof(winPrivScreenRec)); + pScreenPriv = malloc(sizeof(winPrivScreenRec)); if (!pScreenPriv) { ErrorF("winAllocateScreenPrivates - malloc () failed\n"); return FALSE; @@ -150,7 +150,7 @@ winAllocateCmapPrivates(ColormapPtr pCmap) } /* Allocate memory for our private structure */ - pCmapPriv = (winPrivCmapPtr) malloc(sizeof(winPrivCmapRec)); + pCmapPriv = malloc(sizeof(winPrivCmapRec)); if (!pCmapPriv) { ErrorF("winAllocateCmapPrivates - malloc () failed\n"); return FALSE; |