constify unset_in_environ
This constifies an argument to unset_in_environ. 2014-07-24 Tom Tromey <tromey@redhat.com> * environ.c (unset_in_environ): Make "var" const. * environ.h (unset_in_environ): Update.
This commit is contained in:
parent
93db0d79de
commit
41c7789967
@ -1,3 +1,8 @@
|
||||
2014-07-24 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* environ.c (unset_in_environ): Make "var" const.
|
||||
* environ.h (unset_in_environ): Update.
|
||||
|
||||
2014-07-24 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* cli/cli-dump.c (scan_expression_with_cleanup): Return const.
|
||||
|
@ -161,7 +161,7 @@ set_in_environ (struct gdb_environ *e, const char *var, const char *value)
|
||||
/* Remove the setting for variable VAR from environment E. */
|
||||
|
||||
void
|
||||
unset_in_environ (struct gdb_environ *e, char *var)
|
||||
unset_in_environ (struct gdb_environ *e, const char *var)
|
||||
{
|
||||
int len = strlen (var);
|
||||
char **vector = e->vector;
|
||||
|
@ -42,7 +42,7 @@ extern char *get_in_environ (const struct gdb_environ *, const char *);
|
||||
|
||||
extern void set_in_environ (struct gdb_environ *, const char *, const char *);
|
||||
|
||||
extern void unset_in_environ (struct gdb_environ *, char *);
|
||||
extern void unset_in_environ (struct gdb_environ *, const char *);
|
||||
|
||||
extern char **environ_vector (struct gdb_environ *);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user