diff options
author | Jim Meyering <jim@meyering.net> | 2003-04-11 10:51:56 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-04-11 10:51:56 +0000 |
commit | 6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271 (patch) | |
tree | b96ee698e2bd8020d500f01cbf6d6efa743b8a69 /src/paste.c | |
parent | eaff43d5a8173b9c576dadb8d123e3348fb1b809 (diff) | |
download | coreutils-6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271.tar.xz |
Remove anachronistic casts of xmalloc,
xrealloc, and xcalloc return values and of xrealloc's first argument.
Diffstat (limited to 'src/paste.c')
-rw-r--r-- | src/paste.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/paste.c b/src/paste.c index d94e80652..336e15bf4 100644 --- a/src/paste.c +++ b/src/paste.c @@ -1,5 +1,5 @@ /* paste - merge lines of files - Copyright (C) 1984, 1997-2002 by David M. Ihnat + Copyright (C) 1984, 1997-2003 by David M. Ihnat 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 @@ -171,8 +171,8 @@ paste_parallel (int nfiles, char **fnamptr) int i; /* Loop index. */ int opened_stdin = 0; /* Nonzero if any fopen got fd 0. */ - delbuf = (char *) xmalloc (file_list_size + 2); - fileptr = (FILE **) xmalloc ((file_list_size + 1) * sizeof (FILE *)); + delbuf = xmalloc (file_list_size + 2); + fileptr = xmalloc ((file_list_size + 1) * sizeof (FILE *)); /* Attempt to open all files. This could be expanded to an infinite number of files, but at the (considerable) expense of remembering @@ -183,9 +183,8 @@ paste_parallel (int nfiles, char **fnamptr) if (files_open == file_list_size - 2) { file_list_size += 12; - delbuf = (char *) xrealloc (delbuf, file_list_size + 2); - fileptr = (FILE **) xrealloc ((char *) fileptr, (file_list_size + 1) - * sizeof (FILE *)); + delbuf = xrealloc (delbuf, file_list_size + 2); + fileptr = xrealloc (fileptr, (file_list_size + 1) * sizeof (FILE *)); } if (STREQ (fnamptr[files_open], "-")) { |