aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/record/set.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-06-27 11:51:31 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-02 14:05:31 +0200
commitce40aec08aef6aebd1d25728a1d0dc4b2bc8db09 (patch)
tree35762983db2c3e9f0b2fec6501b77ec2d55a7fa4 /nx-X11/programs/Xserver/record/set.c
parent74a5450bc058354e55c1589e64ef8e73775cebc4 (diff)
downloadnx-libs-ce40aec08aef6aebd1d25728a1d0dc4b2bc8db09.tar.gz
nx-libs-ce40aec08aef6aebd1d25728a1d0dc4b2bc8db09.tar.bz2
nx-libs-ce40aec08aef6aebd1d25728a1d0dc4b2bc8db09.zip
nx-X11/programs/Xserver: Drop {X,x}calloc() macros, use calloc() instead.
Diffstat (limited to 'nx-X11/programs/Xserver/record/set.c')
-rw-r--r--nx-X11/programs/Xserver/record/set.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/nx-X11/programs/Xserver/record/set.c b/nx-X11/programs/Xserver/record/set.c
index b8e4cc44c..b7360a565 100644
--- a/nx-X11/programs/Xserver/record/set.c
+++ b/nx-X11/programs/Xserver/record/set.c
@@ -75,14 +75,6 @@ typedef unsigned short CARD16;
#define ALLOCATE_LOCAL malloc
#define DEALLOCATE_LOCAL free
-void *Xcalloc(size)
- int size;
-{
- void *p = malloc(size);
- if (p) memset(p, 0, size);
- return p;
-}
-
#ifndef max
#define max(_a, _b) ( ((_a) > (_b)) ? (_a) : (_b) )
#endif
@@ -258,7 +250,7 @@ BitVectorCreateSet(pIntervals, nIntervals, pMem, memsize)
}
else
{
- pbvs = (BitVectorSetPtr)Xcalloc(memsize);
+ pbvs = (BitVectorSetPtr)calloc(1, memsize);
if (!pbvs) return NULL;
pbvs->baseSet.ops = &BitVectorSetOperations;
}