From: Jim Meyering Date: Sat, 25 Oct 1997 04:44:00 +0000 (+0000) Subject: Remove old-style xmalloc and xrealloc decls. X-Git-Tag: TEXTUTILS-1_22c~179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cfcb7f01175d1c205a3a0e774e3157337109e60d;p=thirdparty%2Fcoreutils.git Remove old-style xmalloc and xrealloc decls. (add_tabstop): Cast first arg of xrealloc to char*. --- diff --git a/src/unexpand.c b/src/unexpand.c index b76e1f49a9..e86702c53e 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; }