mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-29 03:54:32 -04:00
Remove old-style xmalloc and xrealloc decls.
(add_tabstop): Cast first arg of xrealloc to char*.
This commit is contained in:
+3
-5
@@ -52,9 +52,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;
|
||||
|
||||
@@ -142,8 +139,9 @@ 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 * sizeof (tab_list[0]));
|
||||
tab_list = (int *) xrealloc ((char *) tab_list,
|
||||
(first_free_tab
|
||||
+ TABLIST_BLOCK * sizeof (tab_list[0])));
|
||||
tab_list[first_free_tab++] = tabval;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user