aboutsummaryrefslogtreecommitdiff
path: root/gdb/environ.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/environ.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/environ.c')
-rw-r--r--gdb/environ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/environ.c b/gdb/environ.c
index 3469f88..6cd7476 100644
--- a/gdb/environ.c
+++ b/gdb/environ.c
@@ -170,7 +170,7 @@ unset_in_environ (struct gdb_environ *e, char *var)
for (; (s = *vector) != NULL; vector++)
{
- if (DEPRECATED_STREQN (s, var, len) && s[len] == '=')
+ if (strncmp (s, var, len) == 0 && s[len] == '=')
{
xfree (s);
/* Walk through the vector, shuffling args down by one, including