diff options
| author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-15 18:28:36 +0000 |
|---|---|---|
| committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-15 18:28:36 +0000 |
| commit | 8d0afcccdc8ad93ff596ef95b44d520d6b3c73ae (patch) | |
| tree | cd18ca760bb357ceaa6cda012988fe320aa1b783 /fixincludes/fixlib.c | |
| parent | 20f1123c923e66905a1d30cea7f621f1561bdcb2 (diff) | |
| download | ppe42-gcc-8d0afcccdc8ad93ff596ef95b44d520d6b3c73ae.tar.gz ppe42-gcc-8d0afcccdc8ad93ff596ef95b44d520d6b3c73ae.zip | |
* fixlib.c (load_file_data): Use XRESIZVEC in lieu of xrealloc.
* server.c (load_data): Likewise.
(run_shell): Use XCNEW (char) in lieu of xcalloc (1, 1).
* fixincl.c: #include <sys/wait.h>
(run_compiles): Use XCNEWVEC instead of xcalloc.
(fix_with_system, start_fixer): Use XNEWVEC instead of xmalloc.
* fixfixes.c (FIX_PROC_HEAD, main): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99740 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/fixlib.c')
| -rw-r--r-- | fixincludes/fixlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fixincludes/fixlib.c b/fixincludes/fixlib.c index e56328b1621..7ab45c51497 100644 --- a/fixincludes/fixlib.c +++ b/fixincludes/fixlib.c @@ -48,7 +48,7 @@ load_file_data (FILE* fp) if (space_left < 1024) { space_left += 4096; - pz_data = xrealloc (pz_data, space_left + space_used + 1 ); + pz_data = XRESIZEVEC (char, pz_data, space_left + space_used + 1 ); } size_read = fread (pz_data + space_used, 1, space_left, fp); @@ -72,7 +72,7 @@ load_file_data (FILE* fp) space_used += size_read; } while (! feof (fp)); - pz_data = xrealloc (pz_data, space_used+1 ); + pz_data = XRESIZEVEC (char, pz_data, space_used+1 ); pz_data[ space_used ] = NUL; return pz_data; |

