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