From 2e5820377dc0b0c2d0c513729483d6aabe06cb59 Mon Sep 17 00:00:00 2001 From: Packit Date: Aug 20 2020 10:40:33 +0000 Subject: Apply patch remove-unused-functions-from-test-runner.patch patch_name: remove-unused-functions-from-test-runner.patch location_in_specfile: 3 present_in_specfile: true --- diff --git a/test.c b/test.c index cb445ce..a1fa0d3 100644 --- a/test.c +++ b/test.c @@ -27,9 +27,7 @@ #include #if defined(__APPLE__) -# undef strlcat # undef strlncpy -# undef strlcpy #endif /* defined(__APPLE__) */ #undef TRUE @@ -1994,12 +1992,6 @@ strlncat(char *dst, size_t len, const char *src, size_t n) } size_t -strlcat(char *dst, const char *src, size_t len) -{ - return strlncat(dst, len, src, (size_t) -1); -} - -size_t strlncpy(char *dst, size_t len, const char *src, size_t n) { size_t slen; @@ -2017,12 +2009,6 @@ strlncpy(char *dst, size_t len, const char *src, size_t n) return slen; } -size_t -strlcpy(char *dst, const char *src, size_t len) -{ - return strlncpy(dst, len, src, (size_t) -1); -} - int request_url_cb (http_parser *p, const char *buf, size_t len) {