aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-04 23:45:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-04 23:45:37 +0000
commit0883ff098761af5fa1a25ff4ad7f780f4c1d96f9 (patch)
tree8203b6d571dbcd714afcb3e99b0ce9efa4345370
parentd7d2be9d229bec4fa45f367e6fee8d812c6d1b65 (diff)
downloadmandoc-0883ff098761af5fa1a25ff4ad7f780f4c1d96f9.tar.gz
mandoc-0883ff098761af5fa1a25ff4ad7f780f4c1d96f9.tar.zst
mandoc-0883ff098761af5fa1a25ff4ad7f780f4c1d96f9.zip
remove strnlen(3) compat, we no longer use it
-rw-r--r--Makefile5
-rw-r--r--config.h.post3
-rwxr-xr-xconfigure1
3 files changed, 1 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 337d6b38..70ca2da6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.395.2.18 2014/04/24 00:36:44 schwarze Exp $
+# $Id: Makefile,v 1.395.2.19 2014/08/04 23:45:37 schwarze Exp $
#
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
# Copyright (c) 2011, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -83,7 +83,6 @@ TESTSRCS = test-betoh64.c \
test-reallocarray.c \
test-strlcat.c \
test-strlcpy.c \
- test-strnlen.c \
test-strptime.c
SRCS = LICENSE \
@@ -109,7 +108,6 @@ SRCS = LICENSE \
compat_strcasestr.c \
compat_strlcat.c \
compat_strlcpy.c \
- compat_strnlen.c \
compat_strsep.c \
config.h.post \
config.h.pre \
@@ -233,7 +231,6 @@ COMPAT_OBJS = compat_fgetln.o \
compat_strcasestr.o \
compat_strlcat.o \
compat_strlcpy.o \
- compat_strnlen.o \
compat_strsep.o
# === DEPENDENCY HANDLING ==============================================
diff --git a/config.h.post b/config.h.post
index fd59805e..4c3aa1ab 100644
--- a/config.h.post
+++ b/config.h.post
@@ -44,9 +44,6 @@ extern size_t strlcat(char *, const char *, size_t);
#ifndef HAVE_STRLCPY
extern size_t strlcpy(char *, const char *, size_t);
#endif
-#ifndef HAVE_STRNLEN
-extern size_t strnlen(const char *, size_t);
-#endif
#ifndef HAVE_STRSEP
extern char *strsep(char **, const char *);
#endif
diff --git a/configure b/configure
index d119c567..3c7f39e3 100755
--- a/configure
+++ b/configure
@@ -38,7 +38,6 @@ runtest reallocarray REALLOCARRAY
runtest strcasestr STRCASESTR
runtest strlcat STRLCAT
runtest strlcpy STRLCPY
-runtest strnlen STRNLEN
runtest strptime STRPTIME
runtest strsep STRSEP
echo