aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-20 07:10:31 +0000
committerMike Frysinger <vapier@gentoo.org>2010-04-20 07:10:31 +0000
commit048e5b805b3e2ffaccdf612d6f5109b95c77d406 (patch)
treedd5f211078d6c1393e842c3a29bb907b3c132862 /gas
parent9f117f472395074ea657a89049faf2cbb250538f (diff)
downloadgdb-048e5b805b3e2ffaccdf612d6f5109b95c77d406.zip
gdb-048e5b805b3e2ffaccdf612d6f5109b95c77d406.tar.gz
gdb-048e5b805b3e2ffaccdf612d6f5109b95c77d406.tar.bz2
gas: bfin: replace index() with strchr()
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/bfin-lex.l2
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5f5d2b1..78920e6 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-20 Mike Frysinger <vapier@gentoo.org>
+
+ * config/bfin-lex.l (parse_int): Change index() to strchr().
+
2010-04-16 Nick Clifton <nickc@redhat.com>
PR gas/11395
diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l
index 6571c8f..1b80bf9 100644
--- a/gas/config/bfin-lex.l
+++ b/gas/config/bfin-lex.l
@@ -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;