]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Remove old-style xmalloc and xrealloc decls.
authorJim Meyering <jim@meyering.net>
Sat, 25 Oct 1997 04:44:00 +0000 (04:44 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 25 Oct 1997 04:44:00 +0000 (04:44 +0000)
(add_tabstop): Cast first arg of xrealloc to char*.

src/unexpand.c

index b76e1f49a92a69b24f9a28e9f8945b33fb2bdac3..e86702c53e33af1d9cc8693ee6bfabc0b4e9f33d 100644 (file)
@@ -67,9 +67,6 @@
    allocated for the list of tabstops. */
 #define TABLIST_BLOCK 256
 
-char *xmalloc ();
-char *xrealloc ();
-
 /* The name this program was run with. */
 char *program_name;
 
@@ -128,7 +125,8 @@ add_tabstop (int tabval)
   if (tabval == -1)
     return;
   if (first_free_tab % TABLIST_BLOCK == 0)
-    tab_list = (int *) xrealloc (tab_list, first_free_tab + TABLIST_BLOCK);
+    tab_list = (int *) xrealloc ((char *) tab_list,
+                                first_free_tab + TABLIST_BLOCK);
   tab_list[first_free_tab++] = tabval;
 }