]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - libiberty/sort.c
gdb: Remove use of deprecated_interactive_hook
[thirdparty/binutils-gdb.git] / libiberty / sort.c
index a4fffefa3495536eecd239544ee7289c507fe7d7..0267fdb230e3bdae067211de767a5b0c83298c1d 100644 (file)
@@ -1,5 +1,5 @@
 /* Sorting algorithms.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000-2019 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)
     {