mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
* 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:
@ -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
|
||||
|
Reference in New Issue
Block a user