summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/setenv.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-21 18:49:23 +0000
committerobrien <obrien@FreeBSD.org>2002-03-21 18:49:23 +0000
commit1196344bb37334ed0f8808056a53ca058758843c (patch)
tree12b252b7426e8a8904ef257bea10fea6038142f4 /lib/libc/stdlib/setenv.c
parent8ee1755c8ef3729bb2d3c4bfae2b85b786fdaf70 (diff)
downloadFreeBSD-src-1196344bb37334ed0f8808056a53ca058758843c.zip
FreeBSD-src-1196344bb37334ed0f8808056a53ca058758843c.tar.gz
Remove 'register' keyword.
Diffstat (limited to 'lib/libc/stdlib/setenv.c')
-rw-r--r--lib/libc/stdlib/setenv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c
index cd82c0d..ef10810 100644
--- a/lib/libc/stdlib/setenv.c
+++ b/lib/libc/stdlib/setenv.c
@@ -51,13 +51,13 @@ char *__findenv __P((const char *, int *));
*/
int
setenv(name, value, rewrite)
- register const char *name;
- register const char *value;
+ const char *name;
+ const char *value;
int rewrite;
{
extern char **environ;
static char **alloced; /* if allocated space before */
- register char *c;
+ char *c;
int l_value, offset;
if (*value == '=') /* no `=' in value */
@@ -71,8 +71,8 @@ setenv(name, value, rewrite)
return (0);
}
} else { /* create new slot */
- register int cnt;
- register char **p;
+ int cnt;
+ char **p;
for (p = environ, cnt = 0; *p; ++p, ++cnt);
if (alloced == environ) { /* just increase size */
@@ -111,7 +111,7 @@ unsetenv(name)
const char *name;
{
extern char **environ;
- register char **p;
+ char **p;
int offset;
while (__findenv(name, &offset)) /* if set multiple times */
OpenPOWER on IntegriCloud