summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2019-04-13 01:12:18 -0400
committerJay Satiro <raysatiro@yahoo.com>2019-04-16 03:09:42 -0400
commit538db66fe2947b8bbd32afb3574e2c4f66fe3c61 (patch)
tree07c5ae408366b1d14d710122abb28cfa7a5b4f9b /src
parent07ba22166716510036b29d3cc59994dffbd13aee (diff)
downloadcurl-538db66fe2947b8bbd32afb3574e2c4f66fe3c61.tar.gz
tool_help: Warn if curl and libcurl versions do not match
.. because functionality may be affected if the versions differ. This commit implements TODO 18.7 "warning if curl version is not in sync with libcurl version". Ref: https://github.com/curl/curl/blob/curl-7_64_1/docs/TODO#L1028-L1033 Closes https://github.com/curl/curl/pull/3774
Diffstat (limited to 'src')
-rw-r--r--src/tool_help.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_help.c b/src/tool_help.c
index 1ba9975c6..ad6b6a107 100644
--- a/src/tool_help.c
+++ b/src/tool_help.c
@@ -596,6 +596,10 @@ void tool_version_info(void)
printf(" %s", featp[i]);
puts(""); /* newline */
}
+ if(strcmp(CURL_VERSION, curlinfo->version)) {
+ printf("WARNING: curl and libcurl versions do not match. "
+ "Functionality may be affected.\n");
+ }
}
void tool_list_engines(CURL *curl)