diff options
author | jca <> | 2024-07-10 14:17:58 +0000 |
---|---|---|
committer | jca <> | 2024-07-10 14:17:58 +0000 |
commit | aaeb6af9ab85685268769224ce8866d0f7a3a0a6 (patch) | |
tree | c6ce162c6c337296f011be7ba7891dba8c29a4f2 | |
parent | 077aa8d023dc65a8895262df6a17ce2c2cde6e14 (diff) | |
download | openbsd-aaeb6af9ab85685268769224ce8866d0f7a3a0a6.tar.gz openbsd-aaeb6af9ab85685268769224ce8866d0f7a3a0a6.tar.bz2 openbsd-aaeb6af9ab85685268769224ce8866d0f7a3a0a6.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.
-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) |