From aa1ee363bce1eac43bf9824069e231d7113f7453 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 16 Sep 2003 18:56:35 +0000 Subject: 2003-09-16 Andrew Cagney * 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. --- gdb/environ.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/environ.c') 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; } -- cgit v1.1