diff options
| author | jca <> | 2024-07-10 14:17:58 +0000 |
|---|---|---|
| committer | jca <> | 2024-07-10 14:17:58 +0000 |
| commit | 6f61b544177b6a47b531044ca889f6133d40969d (patch) | |
| tree | c6ce162c6c337296f011be7ba7891dba8c29a4f2 /src/lib/libc | |
| parent | bb4e3a4a1aab2b72cd62fbff78ffdeef6d7981a0 (diff) | |
| download | openbsd-6f61b544177b6a47b531044ca889f6133d40969d.tar.gz openbsd-6f61b544177b6a47b531044ca889f6133d40969d.tar.bz2 openbsd-6f61b544177b6a47b531044ca889f6133d40969d.zip | |
Zap warning against __findenv usage, it is not exported by libc
The comment probably made sense before guenther restricted the symbols
exported by libc in 2015.
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/stdlib/getenv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/getenv.c b/src/lib/libc/stdlib/getenv.c index 054497b432..068d70a999 100644 --- a/src/lib/libc/stdlib/getenv.c +++ b/src/lib/libc/stdlib/getenv.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getenv.c,v 1.12 2016/03/13 18:34:21 guenther Exp $ */ | 1 | /* $OpenBSD: getenv.c,v 1.13 2024/07/10 14:17:58 jca Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 1987, 1993 | 3 | * Copyright (c) 1987, 1993 |
| 4 | * The Regents of the University of California. All rights reserved. | 4 | * The Regents of the University of California. All rights reserved. |
| @@ -39,8 +39,6 @@ | |||
| 39 | * Sets offset to be the offset of the name/value combination in the | 39 | * Sets offset to be the offset of the name/value combination in the |
| 40 | * environmental array, for use by putenv(3), setenv(3) and unsetenv(3). | 40 | * environmental array, for use by putenv(3), setenv(3) and unsetenv(3). |
| 41 | * Explicitly removes '=' in argument name. | 41 | * Explicitly removes '=' in argument name. |
| 42 | * | ||
| 43 | * This routine *should* be a static; don't use it. | ||
| 44 | */ | 42 | */ |
| 45 | char * | 43 | char * |
| 46 | __findenv(const char *name, int len, int *offset) | 44 | __findenv(const char *name, int len, int *offset) |
