summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getenv.c
diff options
context:
space:
mode:
authorpat <pat@openbsd.org>2005-03-30 18:51:49 +0000
committerpat <pat@openbsd.org>2005-03-30 18:51:49 +0000
commitd8bc04e435448c902a8c004581e7486635bbff02 (patch)
treeeb84adde243775bdc6375d84958a66b4eb36c02c /lib/libc/stdlib/getenv.c
parentMove sasyncd(8), for IPsec SA synchronization, in-tree. Work in progress. (diff)
downloadwireguard-openbsd-d8bc04e435448c902a8c004581e7486635bbff02.tar.xz
wireguard-openbsd-d8bc04e435448c902a8c004581e7486635bbff02.zip
ansi + de-register
ok otto deraadt
Diffstat (limited to 'lib/libc/stdlib/getenv.c')
-rw-r--r--lib/libc/stdlib/getenv.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c
index c597e468a9c..7e4d6b91a9e 100644
--- a/lib/libc/stdlib/getenv.c
+++ b/lib/libc/stdlib/getenv.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: getenv.c,v 1.6 2003/06/02 20:18:37 millert Exp $";
+static char *rcsid = "$OpenBSD: getenv.c,v 1.7 2005/03/30 18:51:49 pat Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdlib.h>
@@ -49,9 +49,9 @@ char *
__findenv(const char *name, int *offset)
{
extern char **environ;
- register int len, i;
- register const char *np;
- register char **p, *cp;
+ int len, i;
+ const char *np;
+ char **p, *cp;
if (name == NULL || environ == NULL)
return (NULL);
@@ -75,8 +75,7 @@ __findenv(const char *name, int *offset)
* Returns ptr to value associated with name, if any, else NULL.
*/
char *
-getenv(name)
- const char *name;
+getenv(const char *name)
{
int offset;