From: Alejandro Colomar Date: Fri, 6 Mar 2026 23:50:35 +0000 (+0100) Subject: lib/string/: strerrno(): Remove unused macro X-Git-Tag: 4.20.0-rc3~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff232a5b09abed5c7f3cf373882be03a5e7a61ca;p=thirdparty%2Fshadow.git lib/string/: strerrno(): Remove unused macro We don't use this anymore. It was helpful temporarily, but now we use higher-level APIs. Signed-off-by: Alejandro Colomar --- diff --git a/lib/Makefile.am b/lib/Makefile.am index 2995cca66..1154a12ac 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -237,8 +237,6 @@ libshadow_la_SOURCES = \ string/strdup/strndupa.h \ string/strdup/strndup.c \ string/strdup/strndup.h \ - string/strerrno.c \ - string/strerrno.h \ string/strftime.c \ string/strftime.h \ string/strspn/stpspn.c \ diff --git a/lib/string/strerrno.c b/lib/string/strerrno.c deleted file mode 100644 index d7e817c03..000000000 --- a/lib/string/strerrno.c +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-FileCopyrightText: 2025, Alejandro Colomar -// SPDX-License-Identifier: BSD-3-Clause - - -#include "config.h" - -#include "string/strerrno.h" diff --git a/lib/string/strerrno.h b/lib/string/strerrno.h deleted file mode 100644 index 9f28a86a4..000000000 --- a/lib/string/strerrno.h +++ /dev/null @@ -1,19 +0,0 @@ -// SPDX-FileCopyrightText: 2025, Alejandro Colomar -// SPDX-License-Identifier: BSD-3-Clause - - -#ifndef SHADOW_INCLUDE_LIB_STRING_STRERRNO_H_ -#define SHADOW_INCLUDE_LIB_STRING_STRERRNO_H_ - - -#include "config.h" - -#include -#include - - -// strerrno - string errno -#define strerrno() ({(const char *){strerror(errno)};}) - - -#endif // include guard