diff options
author | Jim Meyering <jim@meyering.net> | 1997-10-25 04:42:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-10-25 04:42:15 +0000 |
commit | 0873056df711946b57eb4bab34476698b2e03b1e (patch) | |
tree | 5f3d1ba11d66bd2bc2dea2a175c159f58243277e | |
parent | b480949713018a34c9746d4ac6c379ff158b684d (diff) | |
download | coreutils-0873056df711946b57eb4bab34476698b2e03b1e.tar.xz |
Remove old-style xmalloc and xrealloc decls.
(paste_parallel): Cast first arg of xrealloc to char*.
-rw-r--r-- | src/paste.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/paste.c b/src/paste.c index 2fac48f3a..a623966d1 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], "-")) |