summaryrefslogtreecommitdiff
path: root/lib/strerror.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-01-31 17:41:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-02-01 16:18:39 +0100
commit1bf3643f7b1760f7f92cbb42df2dbdc94e29bf96 (patch)
treec6aca346c3f478c41b7689d4a60f55a7d699e26f /lib/strerror.c
parent0d370ecbfe24b7a1dcecf4d5076b230eb2c2f34f (diff)
downloadcurl-1bf3643f7b1760f7f92cbb42df2dbdc94e29bf96.tar.gz
vxworks: drop support
No changes or fixes in vxworks related code since 2009 leads me to believe that this doesn't work anymore. Closes #8362
Diffstat (limited to 'lib/strerror.c')
-rw-r--r--lib/strerror.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index ae650aef3..48f087d03 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -24,12 +24,9 @@
#ifdef HAVE_STRERROR_R
# if (!defined(HAVE_POSIX_STRERROR_R) && \
- !defined(HAVE_GLIBC_STRERROR_R) && \
- !defined(HAVE_VXWORKS_STRERROR_R)) || \
- (defined(HAVE_POSIX_STRERROR_R) && defined(HAVE_VXWORKS_STRERROR_R)) || \
- (defined(HAVE_GLIBC_STRERROR_R) && defined(HAVE_VXWORKS_STRERROR_R)) || \
+ !defined(HAVE_GLIBC_STRERROR_R)) || \
(defined(HAVE_POSIX_STRERROR_R) && defined(HAVE_GLIBC_STRERROR_R))
-# error "strerror_r MUST be either POSIX, glibc or vxworks-style"
+# error "strerror_r MUST be either POSIX, glibc style"
# endif
#endif
@@ -881,18 +878,6 @@ const char *Curl_strerror(int err, char *buf, size_t buflen)
else
msnprintf(buf, max, "Unknown error %d", err);
}
-#elif defined(HAVE_STRERROR_R) && defined(HAVE_VXWORKS_STRERROR_R)
- /*
- * The vxworks-style strerror_r() does use the buffer we pass to the function.
- * The buffer size should be at least NAME_MAX (256)
- */
- {
- char buffer[256];
- if(OK == strerror_r(err, buffer))
- strncpy(buf, buffer, max);
- else
- msnprintf(buf, max, "Unknown error %d", err);
- }
#else
{
/* !checksrc! disable STRERROR 1 */