fix-header.c (main): When testing for CONTINUED, use string equality, not pointer equality.

* fix-header.c (main): When testing for CONTINUED, use string
        equality, not pointer equality.

From-SVN: r28396
This commit is contained in:
Jeffrey A Law 1999-08-02 07:37:40 +00:00 committed by Jeff Law
parent 110b03026a
commit 93b9cce7ad
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
* fix-header.c (main): When testing for CONTINUED, use string
equality, not pointer equality.
Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
* sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.

View File

@ -1127,7 +1127,7 @@ main (argc, argv)
special_file_handling = stdio_h;
include_entry = std_include_table;
while (include_entry->name != NULL
&& (include_entry->name == CONTINUED
&& ((strcmp (include_entry->name, CONTINUED) == 0)
|| strcmp (inc_filename, include_entry->name) != 0))
include_entry++;
@ -1140,7 +1140,7 @@ main (argc, argv)
if (entry->flags)
add_symbols (entry->flags, entry->names);
entry++;
if (entry->name != CONTINUED)
if (strcmp (entry->name, CONTINUED) != 0)
break;
}
}