summaryrefslogtreecommitdiff
path: root/src/expand.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-11 10:51:56 +0000
committerJim Meyering <jim@meyering.net>2003-04-11 10:51:56 +0000
commit6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271 (patch)
treeb96ee698e2bd8020d500f01cbf6d6efa743b8a69 /src/expand.c
parenteaff43d5a8173b9c576dadb8d123e3348fb1b809 (diff)
downloadcoreutils-6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271.tar.gz
coreutils-6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271.tar.bz2
coreutils-6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271.zip
Remove anachronistic casts of xmalloc,
xrealloc, and xcalloc return values and of xrealloc's first argument.
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/expand.c b/src/expand.c
index 84d14d924..eff48e826 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -1,5 +1,5 @@
/* expand - convert tabs to spaces
- Copyright (C) 89, 91, 1995-2002 Free Software Foundation, Inc.
+ Copyright (C) 89, 91, 1995-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -142,9 +142,8 @@ add_tabstop (int tabval)
if (tabval == -1)
return;
if (first_free_tab % TABLIST_BLOCK == 0)
- tab_list = (int *) xrealloc ((char *) tab_list,
- (first_free_tab
- + TABLIST_BLOCK * sizeof (tab_list[0])));
+ tab_list = xrealloc (tab_list, (first_free_tab
+ + TABLIST_BLOCK * sizeof (tab_list[0])));
tab_list[first_free_tab++] = tabval;
}