* 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.
This commit is contained in:
parent
f44569944a
commit
591e78ffc0
5 changed files with 40 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue