From: Jim Meyering Date: Sat, 25 Oct 1997 04:42:15 +0000 (+0000) Subject: Remove old-style xmalloc and xrealloc decls. X-Git-Tag: TEXTUTILS-1_22c~181 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0873056df711946b57eb4bab34476698b2e03b1e;p=thirdparty%2Fcoreutils.git Remove old-style xmalloc and xrealloc decls. (paste_parallel): Cast first arg of xrealloc to char*. --- diff --git a/src/paste.c b/src/paste.c index 2fac48f3a3..a623966d14 100644 --- a/src/paste.c +++ b/src/paste.c @@ -1,5 +1,5 @@ /* paste - merge lines of files - Copyright (C) 1984 by David M. Ihnat + Copyright (C) 1984, 1997 by David M. Ihnat This program is a total rewrite of the Bell Laboratories Unix(Tm) command of the same name, as of System V. It contains no proprietary @@ -46,9 +46,6 @@ #include "system.h" #include "error.h" -char *xmalloc (); -char *xrealloc (); - /* Indicates that no delimiter should be added in the current position. */ #define EMPTY_DELIM '\0' @@ -194,7 +191,7 @@ paste_parallel (int nfiles, char **fnamptr) { file_list_size += 12; delbuf = (char *) xrealloc (delbuf, file_list_size + 2); - fileptr = (FILE **) xrealloc (fileptr, (file_list_size + 1) + fileptr = (FILE **) xrealloc ((char *) fileptr, (file_list_size + 1) * sizeof (FILE *)); } if (!strcmp (fnamptr[files_open], "-"))