summaryrefslogtreecommitdiff
path: root/include/curl/typecheck-gcc.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-01 14:47:18 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-01 21:06:09 +0200
commit5fe4f7890221b6ff12967af83ce0f14c05f1e2b0 (patch)
tree8e8075b4a633933f9f937cfd0b2d7855dd336aa8 /include/curl/typecheck-gcc.h
parent5e796c5e94e442797b6fe93aa81ff32b41dfb715 (diff)
downloadcurl-5fe4f7890221b6ff12967af83ce0f14c05f1e2b0.tar.gz
typecheck-gcc.h: separate getinfo slist checks from other pointers
Fixes #1524
Diffstat (limited to 'include/curl/typecheck-gcc.h')
-rw-r--r--include/curl/typecheck-gcc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/curl/typecheck-gcc.h b/include/curl/typecheck-gcc.h
index fd2c844dc..ecc9dfb94 100644
--- a/include/curl/typecheck-gcc.h
+++ b/include/curl/typecheck-gcc.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -367,8 +367,8 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_socket,
(CURLINFO_DOUBLE < (info) && (info) < CURLINFO_SLIST)
/* true if info expects a pointer to struct curl_slist * argument */
-#define _curl_is_slist_info(info) \
- (CURLINFO_SLIST < (info) && (info) < CURLINFO_SOCKET)
+#define _curl_is_slist_info(info) \
+ (((info) == CURLINFO_SSL_ENGINES) || ((info) == CURLINFO_COOKIELIST))
/* true if info expects a pointer to struct curl_socket_t argument */
#define _curl_is_socket_info(info) \