From 0873056df711946b57eb4bab34476698b2e03b1e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 25 Oct 1997 04:42:15 +0000 Subject: [PATCH] Remove old-style xmalloc and xrealloc decls. (paste_parallel): Cast first arg of xrealloc to char*. --- src/paste.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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], "-")) -- 2.47.3