aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/randr/rrmode.c
diff options
context:
space:
mode:
authorMihai Moldovan <ïonic@ionic.de>2016-09-16 23:58:54 +0000
committerMihai Moldovan <ïonic@ionic.de>2017-03-03 11:20:20 +0000
commit7011de155a1063a77cbab2f4d1ca599e23d7b102 (patch)
tree75f91e23bbe13469d1a9a53d4b714ce4eaefccf2 /nx-X11/programs/Xserver/randr/rrmode.c
parent5413c5ec8b17dcc223b31f9d08fa3f3c3665d83e (diff)
downloadnx-libs-7011de155a1063a77cbab2f4d1ca599e23d7b102.tar.gz
nx-libs-7011de155a1063a77cbab2f4d1ca599e23d7b102.tar.bz2
nx-libs-7011de155a1063a77cbab2f4d1ca599e23d7b102.zip
misc nx-X11/programs/Xserver/randr/: switch to using xreallocarray, since it has been ported now.
Diffstat (limited to 'nx-X11/programs/Xserver/randr/rrmode.c')
-rw-r--r--nx-X11/programs/Xserver/randr/rrmode.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/randr/rrmode.c b/nx-X11/programs/Xserver/randr/rrmode.c
index f4c12062e..92f67afb9 100644
--- a/nx-X11/programs/Xserver/randr/rrmode.c
+++ b/nx-X11/programs/Xserver/randr/rrmode.c
@@ -212,11 +212,7 @@ RRModesForScreen(ScreenPtr pScreen, int *num_ret)
RRModePtr *screen_modes;
int num_screen_modes = 0;
-#ifndef NXAGENT_SERVER
screen_modes = xallocarray((num_modes ? num_modes : 1), sizeof(RRModePtr));
-#else /* !defined(NXAGENT_SERVER) */
- screen_modes = malloc((num_modes ? num_modes : 1) * sizeof(RRModePtr));
-#endif /* !defined(NXAGENT_SERVER) */
if (!screen_modes)
return NULL;