diff options
author | Jim Meyering <jim@meyering.net> | 1997-10-25 04:40:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-10-25 04:40:28 +0000 |
commit | f4ae4ca4efd62ea4559aba731334565c83cd6b17 (patch) | |
tree | 200d1848fee3d3df1ec2825df3b8c10f0bc7fabf | |
parent | a0b56b516a19b8e3a97380b837005f41fa6dc390 (diff) | |
download | coreutils-f4ae4ca4efd62ea4559aba731334565c83cd6b17.tar.xz |
Remove old-style xmalloc and xrealloc decls.
(add_tabstop): Cast first arg of xrealloc to char*.
-rw-r--r-- | src/expand.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/expand.c b/src/expand.c index 467bce5cb..8563a00d4 100644 --- a/src/expand.c +++ b/src/expand.c @@ -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; } |