Solaris, target_wait(), don't rely on inferior_ptid
[deliverable/binutils-gdb.git] / libiberty / sort.c
index a4fffefa3495536eecd239544ee7289c507fe7d7..fd8f926a8deed83aa574f20b978fa799b5ff74da 100644 (file)
@@ -1,5 +1,5 @@
 /* Sorting algorithms.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000-2020 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.02635 seconds and 4 git commands to generate.