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

014b88
commit 705e519bf56e5904c761a411b38a66e84bf7fc2d
014b88
Author: Ben Noordhuis <info@bnoordhuis.nl>
014b88
Date:   Tue Feb 27 22:59:00 2018 +0100
014b88
014b88
    Remove unused functions from test runner.
014b88
    
014b88
    PR-URL: https://github.com/nodejs-private/http-parser-private/pull/1
014b88
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
014b88
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
014b88
    Reviewed-By: Evan Lucas <evanlucas@me.com>
014b88
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
014b88
    Reviewed-By: James M Snell <jasnell@gmail.com>
014b88
    Reviewed-By: Rod Vagg <rod@vagg.org>
014b88
014b88
diff --git a/test.c b/test.c
014b88
index bc4e664..0cbe544 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
 {