diff options
author | Alan Modra <amodra@gmail.com> | 2020-06-11 15:48:12 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-06-11 15:50:33 +0930 |
commit | f0aa30258af17ab0234951cbf9644837a99036e5 (patch) | |
tree | 6bc6050c81babd65e4493ca5e6b3ae2e560ed1c9 /bfd/pdp11.c | |
parent | fd17d1e695518ab45c6a06596df2e6c09c1d1a46 (diff) | |
download | fsf-binutils-gdb-f0aa30258af17ab0234951cbf9644837a99036e5.zip fsf-binutils-gdb-f0aa30258af17ab0234951cbf9644837a99036e5.tar.gz fsf-binutils-gdb-f0aa30258af17ab0234951cbf9644837a99036e5.tar.bz2 |
PR26107, Compilation failure in pdp11.c
PR 26107
* pdp11.c (is_stab): Replace legacy "index" function with "strchr".
Diffstat (limited to 'bfd/pdp11.c')
-rw-r--r-- | bfd/pdp11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/pdp11.c b/bfd/pdp11.c index fecaa21..c9b26c2 100644 --- a/bfd/pdp11.c +++ b/bfd/pdp11.c @@ -336,8 +336,8 @@ static int is_stab (int type, const char *name) { if (type == N_GSYM || type == N_FUN) - return (index(name, ':') != NULL); - return (type > N_FUN); + return strchr (name, ':') != NULL; + return type > N_FUN; } static int |