From: jca Date: Wed, 10 Jul 2024 14:17:58 +0000 (+0000) Subject: Zap warning against __findenv usage, it is not exported by libc X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2c55ebb04cb1542d61f8a1ce39e88f36c0f7bd8c;p=openbsd 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. --- diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c index 054497b4320..068d70a999f 100644 --- a/lib/libc/stdlib/getenv.c +++ b/lib/libc/stdlib/getenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getenv.c,v 1.12 2016/03/13 18:34:21 guenther Exp $ */ +/* $OpenBSD: getenv.c,v 1.13 2024/07/10 14:17:58 jca Exp $ */ /* * Copyright (c) 1987, 1993 * The Regents of the University of California. All rights reserved. @@ -39,8 +39,6 @@ * Sets offset to be the offset of the name/value combination in the * environmental array, for use by putenv(3), setenv(3) and unsetenv(3). * Explicitly removes '=' in argument name. - * - * This routine *should* be a static; don't use it. */ char * __findenv(const char *name, int len, int *offset)