aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/composite
diff options
context:
space:
mode:
authorMihai Moldovan <ïonic@ionic.de>2016-09-12 02:59:02 +0000
committerMihai Moldovan <ïonic@ionic.de>2017-03-03 11:20:20 +0000
commit5413c5ec8b17dcc223b31f9d08fa3f3c3665d83e (patch)
tree0ebd53bdaa410fc836b2e36a1cf2ec260634d346 /nx-X11/programs/Xserver/composite
parentcd1dcdb2b7458717c6692e43c4ecc36e92a3f81c (diff)
downloadnx-libs-5413c5ec8b17dcc223b31f9d08fa3f3c3665d83e.tar.gz
nx-libs-5413c5ec8b17dcc223b31f9d08fa3f3c3665d83e.tar.bz2
nx-libs-5413c5ec8b17dcc223b31f9d08fa3f3c3665d83e.zip
misc nx-X11/programs/Xserver/{composite,dix,randr}/: switch to using reallocarray, since it has been ported now.
Diffstat (limited to 'nx-X11/programs/Xserver/composite')
-rw-r--r--nx-X11/programs/Xserver/composite/compinit.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/nx-X11/programs/Xserver/composite/compinit.c b/nx-X11/programs/Xserver/composite/compinit.c
index 27b54468f..c4d069dae 100644
--- a/nx-X11/programs/Xserver/composite/compinit.c
+++ b/nx-X11/programs/Xserver/composite/compinit.c
@@ -226,13 +226,8 @@ compRegisterAlternateVisuals(CompScreenPtr cs, VisualID * vids, int nVisuals)
{
VisualID *p;
-#ifndef NXAGENT_SERVER
p = reallocarray(cs->alternateVisuals,
cs->numAlternateVisuals + nVisuals, sizeof(VisualID));
-#else
- p = realloc(cs->alternateVisuals,
- sizeof(VisualID) * (cs->numAlternateVisuals + nVisuals));
-#endif
if (p == NULL)
return FALSE;
@@ -261,13 +256,8 @@ CompositeRegisterImplicitRedirectionException(ScreenPtr pScreen,
CompScreenPtr cs = GetCompScreen(pScreen);
CompImplicitRedirectException *p;
-#ifndef NXAGENT_SERVER
p = reallocarray(cs->implicitRedirectExceptions,
cs->numImplicitRedirectExceptions + 1, sizeof(p[0]));
-#else
- p = realloc(cs->implicitRedirectExceptions,
- sizeof(p[0]) * (cs->numImplicitRedirectExceptions + 1));
-#endif
if (p == NULL)
return FALSE;