mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-20 20:12:21 +00:00
Convert top level extensions to new *allocarray functions
v2: remove now useless parentheses Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
b9e665c8b2
commit
1c56ac63c0
34 changed files with 111 additions and 122 deletions
|
|
@ -140,9 +140,9 @@ PseudoramiXAddScreen(int x, int y, int w, int h)
|
|||
|
||||
if (pseudoramiXNumScreens == pseudoramiXScreensAllocated) {
|
||||
pseudoramiXScreensAllocated += pseudoramiXScreensAllocated + 1;
|
||||
pseudoramiXScreens = realloc(pseudoramiXScreens,
|
||||
pseudoramiXScreensAllocated *
|
||||
sizeof(PseudoramiXScreenRec));
|
||||
pseudoramiXScreens = reallocarray(pseudoramiXScreens,
|
||||
pseudoramiXScreensAllocated,
|
||||
sizeof(PseudoramiXScreenRec));
|
||||
}
|
||||
|
||||
DEBUG_LOG("x: %d, y: %d, w: %d, h: %d\n", x, y, w, h);
|
||||
|
|
|
|||
Loading…
Reference in a new issue