diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-16 18:56:35 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-16 18:56:35 +0000 |
commit | aa1ee363bce1eac43bf9824069e231d7113f7453 (patch) | |
tree | 525611e316e7caf3efd4ea5a1ebcdf74dbf3b07c /gdb/environ.c | |
parent | f2ea0907de3f3f7f59a0efdea58305184917e6cf (diff) | |
download | gdb-aa1ee363bce1eac43bf9824069e231d7113f7453.zip gdb-aa1ee363bce1eac43bf9824069e231d7113f7453.tar.gz gdb-aa1ee363bce1eac43bf9824069e231d7113f7453.tar.bz2 |
2003-09-16 Andrew Cagney <cagney@redhat.com>
* buildsym.c: Remove more occurances of "register".
* coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
* environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
* gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
* infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
* printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
* sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
* standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
* utils.c, valops.c, values.c, xcoffread.c: Ditto.
Diffstat (limited to 'gdb/environ.c')
-rw-r--r-- | gdb/environ.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/environ.c b/gdb/environ.c index e1972a9..8612b0a 100644 --- a/gdb/environ.c +++ b/gdb/environ.c @@ -44,7 +44,7 @@ make_environ (void) /* Free an environment and all the strings in it. */ void -free_environ (register struct environ *e) +free_environ (struct environ *e) { char **vector = e->vector; @@ -59,7 +59,7 @@ free_environ (register struct environ *e) that all strings in these environments are safe to free. */ void -init_environ (register struct environ *e) +init_environ (struct environ *e) { extern char **environ; int i; @@ -80,8 +80,8 @@ init_environ (register struct environ *e) while (--i >= 0) { - register int len = strlen (e->vector[i]); - register char *new = (char *) xmalloc (len + 1); + int len = strlen (e->vector[i]); + char *new = (char *) xmalloc (len + 1); memcpy (new, e->vector[i], len + 1); e->vector[i] = new; } |