diff options
author | Jim Meyering <jim@meyering.net> | 2003-04-11 09:16:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-04-11 09:16:02 +0000 |
commit | 912a810f6fb5a17dff7aa1780f915b50ce3ad671 (patch) | |
tree | 1011334c100685b74903df4d414734ba3f41c640 /src | |
parent | 2ab3a2f2450b847ae280e73373e1283dd5b891a4 (diff) | |
download | coreutils-912a810f6fb5a17dff7aa1780f915b50ce3ad671.tar.xz |
do not cast xmalloc return value
Diffstat (limited to 'src')
-rw-r--r-- | src/asa.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -82,7 +82,7 @@ add_line (str *line) if (line_num >= linebuf_size) { linebuf_size += NUMLINES; - line_buffer = (str *) xrealloc (line_buffer, linebuf_size * sizeof (str *)); + line_buffer = xrealloc (line_buffer, linebuf_size * sizeof (str *)); } line_buffer[line_num] = *line; line_num++; @@ -147,7 +147,7 @@ readline (FILE *fp, char **ret) int i; if (buffer == (char *) 0) - buffer = (char *) xmalloc (LINESIZE); + buffer = xmalloc (LINESIZE); while (1) { @@ -233,7 +233,7 @@ int main (int argc, char **argv) { int err; - line_buffer = (str *) xmalloc (NUMLINES * sizeof (str *)); + line_buffer = xmalloc (NUMLINES * sizeof (str *)); linebuf_size = NUMLINES; err = 0; |