diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-12-15 16:59:20 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-12-15 16:59:20 +0000 |
commit | 662e4701860d1e5c3105ebed3440ca4970d3179f (patch) | |
tree | 3016cefac661e838c0d9fb344705a827f9b52a7d /bfd/tekhex.c | |
parent | e3c58833bf3e173b040ae267d6ee060cee9c4ba5 (diff) | |
download | gdb-662e4701860d1e5c3105ebed3440ca4970d3179f.zip gdb-662e4701860d1e5c3105ebed3440ca4970d3179f.tar.gz gdb-662e4701860d1e5c3105ebed3440ca4970d3179f.tar.bz2 |
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 bc3c9ca..2204ebb 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. */ |