aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c
index d9b471b..46186bb 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -671,7 +671,7 @@ pop_all_targets (void)
int
target_is_pushed (struct target_ops *t)
{
- struct target_ops **cur;
+ struct target_ops *cur;
/* Check magic number. If wrong, it probably means someone changed
the struct definition, but not all the places that initialize one. */
@@ -684,8 +684,8 @@ target_is_pushed (struct target_ops *t)
_("failed internal consistency check"));
}
- for (cur = &target_stack; (*cur) != NULL; cur = &(*cur)->beneath)
- if (*cur == t)
+ for (cur = target_stack; cur != NULL; cur = cur->beneath)
+ if (cur == t)
return 1;
return 0;