aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/environ.c2
-rw-r--r--gdb/environ.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 959600d..b7d0739 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
Make "cmd" const.
(scan_filename_with_cleanup): Likewise.
diff --git a/gdb/environ.c b/gdb/environ.c
index 7092a1a..d661a01 100644
--- a/gdb/environ.c
+++ b/gdb/environ.c
@@ -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;
diff --git a/gdb/environ.h b/gdb/environ.h
index 43f6bd4..5c4fac1 100644
--- a/gdb/environ.h
+++ b/gdb/environ.h
@@ -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 *);