aboutsummaryrefslogtreecommitdiff
path: root/bfd/pdp11.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/pdp11.c')
-rw-r--r--bfd/pdp11.c4
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