mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
12
bfd/tekhex.c
12
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. */
|
||||
|
Reference in New Issue
Block a user