From 6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 11 Apr 2003 10:51:56 +0000 Subject: Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values and of xrealloc's first argument. --- src/expand.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/expand.c') 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; } -- cgit v1.2.3-54-g00ecf