]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/string/: strerrno(): Remove unused macro
authorAlejandro Colomar <alx@kernel.org>
Fri, 6 Mar 2026 23:50:35 +0000 (00:50 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 17 Jul 2026 13:48:04 +0000 (08:48 -0500)
We don't use this anymore.

It was helpful temporarily, but now we use higher-level APIs.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/Makefile.am
lib/string/strerrno.c [deleted file]
lib/string/strerrno.h [deleted file]

index 2995cca66cc4dd21d80d1b88bea015f264bf9d5c..1154a12aca5584456c79a442343df38a6789d822 100644 (file)
@@ -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 (file)
index d7e817c..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// SPDX-FileCopyrightText: 2025, Alejandro Colomar <alx@kernel.org>
-// 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 (file)
index 9f28a86..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// SPDX-FileCopyrightText: 2025, Alejandro Colomar <alx@kernel.org>
-// SPDX-License-Identifier: BSD-3-Clause
-
-
-#ifndef SHADOW_INCLUDE_LIB_STRING_STRERRNO_H_
-#define SHADOW_INCLUDE_LIB_STRING_STRERRNO_H_
-
-
-#include "config.h"
-
-#include <errno.h>
-#include <string.h>
-
-
-// strerrno - string errno
-#define strerrno()  ({(const char *){strerror(errno)};})
-
-
-#endif  // include guard