diff options
author | Mihai Moldovan <ïonic@ionic.de> | 2016-09-12 02:59:02 +0000 |
---|---|---|
committer | Mihai Moldovan <ïonic@ionic.de> | 2017-03-03 11:20:20 +0000 |
commit | 5413c5ec8b17dcc223b31f9d08fa3f3c3665d83e (patch) | |
tree | 0ebd53bdaa410fc836b2e36a1cf2ec260634d346 /nx-X11/programs/Xserver/randr/rroutput.c | |
parent | cd1dcdb2b7458717c6692e43c4ecc36e92a3f81c (diff) | |
download | nx-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/randr/rroutput.c')
-rw-r--r-- | nx-X11/programs/Xserver/randr/rroutput.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/nx-X11/programs/Xserver/randr/rroutput.c b/nx-X11/programs/Xserver/randr/rroutput.c index 5235f39d7..2b44b7f4d 100644 --- a/nx-X11/programs/Xserver/randr/rroutput.c +++ b/nx-X11/programs/Xserver/randr/rroutput.c @@ -75,13 +75,8 @@ RROutputCreate(ScreenPtr pScreen, pScrPriv = rrGetScrPriv(pScreen); if (pScrPriv->numOutputs) -#ifndef NXAGENT_SERVER outputs = reallocarray(pScrPriv->outputs, pScrPriv->numOutputs + 1, sizeof(RROutputPtr)); -#else /* !defined(NXAGENT_SERVER) */ - outputs = realloc(pScrPriv->outputs, - (pScrPriv->numOutputs + 1) * sizeof(RROutputPtr)); -#endif /* !defined(NXAGENT_SERVER) */ else outputs = malloc(sizeof(RROutputPtr)); if (!outputs) @@ -228,13 +223,8 @@ RROutputAddUserMode(RROutputPtr output, RRModePtr mode) return BadMatch; if (output->userModes) -#ifndef NXAGENT_SERVER newModes = reallocarray(output->userModes, output->numUserModes + 1, sizeof(RRModePtr)); -#else /* !defined(NXAGENT_SERVER) */ - newModes = realloc(output->userModes, - (output->numUserModes + 1) * sizeof(RRModePtr)); -#endif /* !defined(NXAGENT_SERVER) */ else newModes = malloc(sizeof(RRModePtr)); if (!newModes) |