[patch/committed] Blackfin assembler: replace index() with strchr()
Mike Frysinger
vapier@gentoo.org
Tue Apr 20 07:30:00 GMT 2010
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20100420/ed42aa5b/attachment.sig>
More information about the Binutils
mailing list