Skip to content

Commit

Permalink
typecheck-gcc.h: CURLINFO_PRIVATE does not need a 'char *'
Browse files Browse the repository at this point in the history
Reported-by: Billyzou0741326 on github
Fixes curl#5432
Closes curl#5436
  • Loading branch information
bagder committed May 20, 2020
1 parent bb79320 commit 5d965b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/curl/typecheck-gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ CURLWARNING(_curl_easy_getinfo_err_curl_off_t,
/* groups of curl_easy_getinfo infos that take the same type of argument */

/* evaluates to true if info expects a pointer to char * argument */
#define curlcheck_string_info(info) \
(CURLINFO_STRING < (info) && (info) < CURLINFO_LONG)
#define curlcheck_string_info(info) \
(CURLINFO_STRING < (info) && (info) < CURLINFO_LONG && \
(info) != CURLINFO_PRIVATE)

/* evaluates to true if info expects a pointer to long argument */
#define curlcheck_long_info(info) \
Expand Down

0 comments on commit 5d965b4

Please sign in to comment.