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/fixfixes.c | |
parent | 20f1123c923e66905a1d30cea7f621f1561bdcb2 (diff) | |
download | gcc-8d0afcccdc8ad93ff596ef95b44d520d6b3c73ae.tar.gz |
* 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/fixfixes.c')
-rw-r--r-- | fixincludes/fixfixes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fixincludes/fixfixes.c b/fixincludes/fixfixes.c index 732092061a0..c883253123d 100644 --- a/fixincludes/fixfixes.c +++ b/fixincludes/fixfixes.c @@ -605,7 +605,7 @@ FIX_PROC_HEAD( wrap_fix ) * *both* the fix name and the file name. */ size_t ln = strlen( filname ) + strlen( p_fixd->fix_name ) + 14; - char* pz = xmalloc( ln ); + char* pz = XNEWVEC (char, ln); pz_name = pz; sprintf( pz, "FIXINC_WRAP_%s-%s", filname, p_fixd->fix_name ); @@ -770,7 +770,7 @@ main( int argc, char** argv ) return EXIT_FAILURE; } - pz_tmptmp = xmalloc (strlen (argv[4]) + 5); + pz_tmptmp = XNEWVEC (char, strlen (argv[4]) + 5); strcpy( pz_tmptmp, argv[4] ); /* Don't lose because "12345678" and "12345678X" map to the same |