aboutsummaryrefslogtreecommitdiff
path: root/gdb/environ.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-07-21 16:33:21 -0600
committerTom Tromey <tromey@redhat.com>2014-07-24 11:30:02 -0600
commit41c77899672db7a30d09d2e68524f0eb3faf937b (patch)
tree682c8feaa8acd09dd3ec14d5bda850d69cfb3e03 /gdb/environ.c
parent93db0d79de0c2676edffb8e36109ca3f6faa822b (diff)
downloadgdb-41c77899672db7a30d09d2e68524f0eb3faf937b.zip
gdb-41c77899672db7a30d09d2e68524f0eb3faf937b.tar.gz
gdb-41c77899672db7a30d09d2e68524f0eb3faf937b.tar.bz2
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.
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 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;