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:
H.J. Lu
2009-12-15 16:59:20 +00:00
parent e3c58833bf
commit 662e470186
3 changed files with 35 additions and 28 deletions

View File

@ -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. */