diff options
Diffstat (limited to 'meta/recipes-support/curl/curl/vtls-fix-warning.patch')
-rw-r--r-- | meta/recipes-support/curl/curl/vtls-fix-warning.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/vtls-fix-warning.patch b/meta/recipes-support/curl/curl/vtls-fix-warning.patch new file mode 100644 index 0000000000..113b6fd116 --- /dev/null +++ b/meta/recipes-support/curl/curl/vtls-fix-warning.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From b31d9ccfc2da288900e6857ad8d048c612328cac Mon Sep 17 00:00:00 2001 | ||
2 | From: Jay Satiro <raysatiro@yahoo.com> | ||
3 | Date: Sun, 20 Jun 2021 16:42:58 -0400 | ||
4 | Subject: [PATCH] vtls: fix warning due to function prototype mismatch | ||
5 | |||
6 | b09c8ee changed the function prototype. Caught by Visual Studio. | ||
7 | |||
8 | Upstream-Status: Backport [https://github.com/curl/curl/commit/b31d9ccfc2da288900e6857ad8d048c612328cac] | ||
9 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
10 | --- | ||
11 | lib/vtls/vtls.c | 2 +- | ||
12 | lib/vtls/vtls.h | 2 +- | ||
13 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c | ||
16 | index 82883c9c55e2..fe43703bf8b8 100644 | ||
17 | --- a/lib/vtls/vtls.c | ||
18 | +++ b/lib/vtls/vtls.c | ||
19 | @@ -497,7 +497,7 @@ void Curl_ssl_delsessionid(struct Curl_easy *data, void *ssl_sessionid) | ||
20 | */ | ||
21 | CURLcode Curl_ssl_addsessionid(struct Curl_easy *data, | ||
22 | struct connectdata *conn, | ||
23 | - bool isProxy, | ||
24 | + const bool isProxy, | ||
25 | void *ssl_sessionid, | ||
26 | size_t idsize, | ||
27 | int sockindex) | ||
28 | diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h | ||
29 | index a0585c9cec4c..f1a9b8033ae5 100644 | ||
30 | --- a/lib/vtls/vtls.h | ||
31 | +++ b/lib/vtls/vtls.h | ||
32 | @@ -247,7 +247,7 @@ void Curl_ssl_sessionid_unlock(struct Curl_easy *data); | ||
33 | */ | ||
34 | bool Curl_ssl_getsessionid(struct Curl_easy *data, | ||
35 | struct connectdata *conn, | ||
36 | - const bool isproxy, | ||
37 | + const bool isProxy, | ||
38 | void **ssl_sessionid, | ||
39 | size_t *idsize, /* set 0 if unknown */ | ||
40 | int sockindex); | ||