mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
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>
This commit is contained in:
parent
94f709cfce
commit
0fc84a2bb6
12 changed files with 35 additions and 49 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue