aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-08-29 12:57:49 +0000
committerMark Kettenis <kettenis@gnu.org>2005-08-29 12:57:49 +0000
commit591e78ffc0230ef35359700d8b567150e0aeb33c (patch)
treeaecde1448dde313ab22663ee3cfcf712193339c5 /gdb/source.c
parentf44569944ac2b0aeeffb3758179b77537c2de8b4 (diff)
downloadgdb-591e78ffc0230ef35359700d8b567150e0aeb33c.zip
gdb-591e78ffc0230ef35359700d8b567150e0aeb33c.tar.gz
gdb-591e78ffc0230ef35359700d8b567150e0aeb33c.tar.bz2
* environ.c (unset_in_environ): Use strncmp instead of
DEPRECATED_STREQN. * exec.c (exec_file_attach): Remove DEPRECATED_HPUX_TEXT_END. * language.c (set_case_command, language_enum): Use strcmp instead of DEPRECATED_STREQ. * source.c (select_source_symtab): Sprinkle a few consts. Use strcmp instead of DEPRECATED_STREQ.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/gdb/source.c b/gdb/source.c
index e2baddc..14051b7 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -251,12 +251,10 @@ select_source_symtab (struct symtab *s)
{
for (s = ofp->symtabs; s; s = s->next)
{
- char *name = s->filename;
+ const char *name = s->filename;
int len = strlen (name);
- if (!(len > 2 && (DEPRECATED_STREQ (&name[len - 2], ".h"))))
- {
- current_source_symtab = s;
- }
+ if (!(len > 2 && strcmp(&name[len - 2], ".h") == 0))
+ current_source_symtab = s;
}
}
if (current_source_symtab)
@@ -268,12 +266,10 @@ select_source_symtab (struct symtab *s)
{
for (ps = ofp->psymtabs; ps != NULL; ps = ps->next)
{
- char *name = ps->filename;
+ const char *name = ps->filename;
int len = strlen (name);
- if (!(len > 2 && (DEPRECATED_STREQ (&name[len - 2], ".h"))))
- {
- cs_pst = ps;
- }
+ if (!(len > 2 && strcmp (&name[len - 2], ".h") == 0))
+ cs_pst = ps;
}
}
if (cs_pst)