diff options
author | H.J. Lu <hjl@lucon.org> | 2009-12-15 16:59:19 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2009-12-15 16:59:19 +0000 |
commit | 7c3d07182a9ab0cbf70e808b5ece56639a15c1b6 (patch) | |
tree | 86b2c6ca38593de16b102013d8b63c342dddd6fe /bfd/tekhex.c | |
parent | 2028278be507b6199d75551d44a25bf2867c3198 (diff) | |
download | binutils-redhat-7c3d07182a9ab0cbf70e808b5ece56639a15c1b6.tar.gz |
2009-12-15 H.J. Lu <hongjiu.lu@intel.com>
* opncls.c (bfd_opnr_iovec): Replace _XXX with XXX_P in
parameters.
* tekhex.c (pass_over): Replace eof with is_eof.
Diffstat (limited to 'bfd/tekhex.c')
-rw-r--r-- | bfd/tekhex.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bfd/tekhex.c b/bfd/tekhex.c index bc3c9ca9bc..2204ebba6e 100644 --- a/bfd/tekhex.c +++ b/bfd/tekhex.c @@ -461,22 +461,22 @@ static bfd_boolean pass_over (bfd *abfd, bfd_boolean (*func) (bfd *, int, char *)) { unsigned int chars_on_line; - bfd_boolean eof = FALSE; + bfd_boolean is_eof = FALSE; /* To the front of the file. */ if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0) return FALSE; - while (! eof) + while (! is_eof) { char src[MAXCHUNK]; char type; /* Find first '%'. */ - eof = (bfd_boolean) (bfd_bread (src, (bfd_size_type) 1, abfd) != 1); - while (*src != '%' && !eof) - eof = (bfd_boolean) (bfd_bread (src, (bfd_size_type) 1, abfd) != 1); + is_eof = (bfd_boolean) (bfd_bread (src, (bfd_size_type) 1, abfd) != 1); + while (*src != '%' && !is_eof) + is_eof = (bfd_boolean) (bfd_bread (src, (bfd_size_type) 1, abfd) != 1); - if (eof) + if (is_eof) break; /* Fetch the type and the length and the checksum. */ |