]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
libkmod: remove __secure_getenv handling
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 18 Sep 2024 16:32:31 +0000 (17:32 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 21 Sep 2024 16:16:17 +0000 (11:16 -0500)
The build-time checking for __secure_getenv was dropped earlier, yet I
forgot to remove the actual users :facepalm:

Fixes: 9dc54a3 ("build: stop checking for __secure_getenv")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/139
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-internal.h

index a3528cd525a154eb8ef8678ef23461798a786637..7082487c3b76a772cfbc0c7e81d20aeaa438089e 100644 (file)
@@ -40,12 +40,8 @@ static _always_inline_ _printf_format_(2, 3) void
 #define KCMD_LINE_SIZE 4096
 
 #ifndef HAVE_SECURE_GETENV
-#  ifdef HAVE___SECURE_GETENV
-#    define secure_getenv __secure_getenv
-#  else
-#    warning neither secure_getenv nor __secure_getenv is available
-#    define secure_getenv getenv
-#  endif
+#warning secure_getenv is not available
+#define secure_getenv getenv
 #endif
 
 _printf_format_(6, 7) _nonnull_(1, 3, 5) void kmod_log(const struct kmod_ctx *ctx,