summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-10-25 04:44:00 +0000
committerJim Meyering <jim@meyering.net>1997-10-25 04:44:00 +0000
commitcfcb7f01175d1c205a3a0e774e3157337109e60d (patch)
treed8c1e1e022b958035a9da1fc72ce20ba4faca9eb
parent0927513b1648b948224eebc4f1d90eda5ba9949e (diff)
downloadcoreutils-cfcb7f01175d1c205a3a0e774e3157337109e60d.tar.xz
Remove old-style xmalloc and xrealloc decls.
(add_tabstop): Cast first arg of xrealloc to char*.
-rw-r--r--src/unexpand.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/unexpand.c b/src/unexpand.c
index b76e1f49a..e86702c53 100644
--- a/src/unexpand.c
+++ b/src/unexpand.c
@@ -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;
}