AArch64: Add gdbserver MTE support
[deliverable/binutils-gdb.git] / libiberty / sort.c
index a4fffefa3495536eecd239544ee7289c507fe7d7..a6760ebe6f794300c2fe9954fc5abdcba794c549 100644 (file)
@@ -1,5 +1,5 @@
 /* Sorting algorithms.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000-2021 Free Software Foundation, Inc.
    Contributed by Mark Mitchell <mark@codesourcery.com>.
 
 This file is part of GNU CC.
@@ -155,8 +155,8 @@ int main (int argc, char **argv)
   else
     k = 10;
 
-  pointers = xmalloc (k * sizeof (void *));
-  work = xmalloc (k * sizeof (void *));
+  pointers = XNEWVEC (void*, k);
+  work = XNEWVEC (void*, k);
 
   for (i = 0; i < k; ++i)
     {
This page took 0.023183 seconds and 4 git commands to generate.