Blame SOURCES/remove-unused-functions-from-test-runner.patch

6899e0
From d22c4c1e3ab9ffe5faaa08bacd993c814ca1c92e Mon Sep 17 00:00:00 2001
6899e0
From: Sergio Correia <scorreia@redhat.com>
6899e0
Date: Tue, 18 Feb 2020 09:11:05 -0300
6899e0
Subject: [PATCH] Remove unused functions from test runner.
6899e0
MIME-Version: 1.0
6899e0
Content-Type: text/plain; charset=UTF-8
6899e0
Content-Transfer-Encoding: 8bit
014b88
6899e0
Upstream: 705e519bf56e5904c761a411b38a66e84bf7fc2d
6899e0
6899e0
PR-URL: https://github.com/nodejs-private/http-parser-private/pull/1
6899e0
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
6899e0
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
6899e0
Reviewed-By: Evan Lucas <evanlucas@me.com>
6899e0
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
6899e0
Reviewed-By: James M Snell <jasnell@gmail.com>
6899e0
Reviewed-By: Rod Vagg <rod@vagg.org>
6899e0
---
6899e0
 test.c | 14 --------------
6899e0
 1 file changed, 14 deletions(-)
014b88
014b88
diff --git a/test.c b/test.c
6899e0
index cb445ce..a1fa0d3 100644
014b88
--- a/test.c
014b88
+++ b/test.c
014b88
@@ -27,9 +27,7 @@
014b88
 #include <stdarg.h>
014b88
 
014b88
 #if defined(__APPLE__)
014b88
-# undef strlcat
014b88
 # undef strlncpy
014b88
-# undef strlcpy
014b88
 #endif  /* defined(__APPLE__) */
014b88
 
014b88
 #undef TRUE
014b88
@@ -1993,12 +1991,6 @@ strlncat(char *dst, size_t len, const char *src, size_t n)
014b88
   return slen + dlen;
014b88
 }
014b88
 
014b88
-size_t
014b88
-strlcat(char *dst, const char *src, size_t len)
014b88
-{
014b88
-  return strlncat(dst, len, src, (size_t) -1);
014b88
-}
014b88
-
014b88
 size_t
014b88
 strlncpy(char *dst, size_t len, const char *src, size_t n)
014b88
 {
014b88
@@ -2017,12 +2009,6 @@ strlncpy(char *dst, size_t len, const char *src, size_t n)
014b88
   return slen;
014b88
 }
014b88
 
014b88
-size_t
014b88
-strlcpy(char *dst, const char *src, size_t len)
014b88
-{
014b88
-  return strlncpy(dst, len, src, (size_t) -1);
014b88
-}
014b88
-
014b88
 int
014b88
 request_url_cb (http_parser *p, const char *buf, size_t len)
014b88
 {
6899e0
-- 
6899e0
2.18.2
6899e0