* [patch/committed] Blackfin assembler: replace index() with strchr()
@ 2010-04-20 7:30 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2010-04-20 7:30 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 712 bytes --]
ive converted this obvious deprecated usage of index() with strchr(). fixes
some mingw build warnings among other things.
-mike
2010-04-20 Mike Frysinger <vapier@gentoo.org>
* config/bfin-lex.l (parse_int): Change index() to strchr().
RCS file: /cvs/src/src/gas/config/bfin-lex.l,v
retrieving revision 1.11
diff -u -p -r1.11 bfin-lex.l
--- gas/config/bfin-lex.l 10 Mar 2010 14:23:58 -0000 1.11
+++ gas/config/bfin-lex.l 20 Apr 2010 07:03:00 -0000
@@ -483,7 +483,7 @@ static long parse_int (char **end)
{
char c;
c = *arg++;
- if (c == 0 || !index (char_bag, c))
+ if (c == 0 || !strchr (char_bag, c))
{
not_done = 0;
*--arg = c;
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-20 7:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20 7:30 [patch/committed] Blackfin assembler: replace index() with strchr() Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).