diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-04-10 09:23:06 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-04-10 09:23:06 -0400 |
commit | 5f972d0c2936414340ce3b12238cf37e1efd0a80 (patch) | |
tree | 4290ed138ff658c4037ebd1b00da83f72879d6f5 /gcc/cpplib.c | |
parent | 02d0b8be9392adeee0d474b2c55013796e5d71ac (diff) | |
download | gcc-5f972d0c2936414340ce3b12238cf37e1efd0a80.zip gcc-5f972d0c2936414340ce3b12238cf37e1efd0a80.tar.gz gcc-5f972d0c2936414340ce3b12238cf37e1efd0a80.tar.bz2 |
(init_parse_options, cpp_reader): Cast args to bcopy, bcmp, and bzero to char *.
(init_parse_options, cpp_reader): Cast args to bcopy, bcmp, and bzero to
char *.
(add_import, push_parse_file, init_parse_file): Likewise.
From-SVN: r9352
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 15910af..76d8aa5 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -842,7 +842,7 @@ void init_parse_options (opts) struct cpp_options *opts; { - bzero (opts, sizeof *opts); + bzero ((char *) opts, sizeof *opts); opts->in_fname = NULL; opts->out_fname = NULL; @@ -5374,7 +5374,7 @@ cpp_reader *pfile; while (i) { /* Compare the inode and the device. Supposedly on some systems the inode is not a scalar. */ - if (!bcmp (&i->inode, &sb.st_ino, sizeof (sb.st_ino)) + if (!bcmp ((char *) &i->inode, (char *) &sb.st_ino, sizeof (sb.st_ino)) && i->dev == sb.st_dev) { close (fd); return -2; /* return found */ @@ -5402,7 +5402,7 @@ add_import (pfile, fd, fname) i = (struct import_file *)xmalloc (sizeof (struct import_file)); i->name = (char *)xmalloc (strlen (fname)+1); strcpy (i->name, fname); - bcopy (&sb.st_ino, &i->inode, sizeof (sb.st_ino)); + bcopy ((char *) &sb.st_ino, (char *) &i->inode, sizeof (sb.st_ino)); i->dev = sb.st_dev; i->next = pfile->import_hash_table[hashval]; pfile->import_hash_table[hashval] = i; @@ -5957,7 +5957,8 @@ push_parse_file (pfile, fname) endp++; } /* Put the usual defaults back in at the end. */ - bcopy (include_defaults_array, &include_defaults[num_dirs], + bcopy ((char *) include_defaults_array, + (char *) &include_defaults[num_dirs], sizeof (include_defaults_array)); } } @@ -6251,7 +6252,7 @@ void init_parse_file (pfile) cpp_reader *pfile; { - bzero (pfile, sizeof (cpp_reader)); + bzero ((char *) pfile, sizeof (cpp_reader)); pfile->get_token = cpp_get_token; pfile->token_buffer_size = 200; |