aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@cygnus.com>1999-06-07 10:35:27 +0000
committerDave Brolley <brolley@gcc.gnu.org>1999-06-07 06:35:27 -0400
commite7553be55ad4e48cfbd36b896947104d763b5696 (patch)
tree23b92bd39b6485ed2d1cf4e011752164ac81fb8b /gcc/cppfiles.c
parent683a10613f9e9a252effdccd7a1c3c003d2c5f91 (diff)
downloadgcc-e7553be55ad4e48cfbd36b896947104d763b5696.zip
gcc-e7553be55ad4e48cfbd36b896947104d763b5696.tar.gz
gcc-e7553be55ad4e48cfbd36b896947104d763b5696.tar.bz2
cpplib.c (do_define): Cast `alloca' return value.
Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com> * cpplib.c (do_define): Cast `alloca' return value. (do_include, do_undef, do_pragma): Likewise. * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return values. * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values. * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value. From-SVN: r27391
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index a63d7e5..1e70d3e 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -1100,7 +1100,7 @@ initialize_input_buffer (pfile, fd, st)
read_and_prescan inner loop. The number of non-EMPTY entries
should be as small as humanly possible. */
- tmp = xmalloc (1 << CHAR_BIT);
+ tmp = (U_CHAR *) xmalloc (1 << CHAR_BIT);
memset (tmp, SPECCASE_EMPTY, 1 << CHAR_BIT);
tmp['\0'] = SPECCASE_NUL;
tmp['\r'] = SPECCASE_CR;
@@ -1138,7 +1138,7 @@ initialize_input_buffer (pfile, fd, st)
the case there's a potential trigraph or end-of-line digraph at
the end of a block. */
- tmp = xmalloc (pipe_buf + 2 + 2);
+ tmp = (U_CHAR *) xmalloc (pipe_buf + 2 + 2);
pfile->input_buffer = tmp;
pfile->input_buffer_len = pipe_buf;
}