Skip to content

Commit

Permalink
Fix warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
johncbowman committed Nov 19, 2023
1 parent 1007bd5 commit fb0c259
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,7 @@ size_t curlCallback(char *data, size_t size, size_t n, stringstream& buf)
return Size;
}

#ifdef CURLOPT_XFERINFODATA
#define CURL_OFF_T curl_off_t
#else
#define CURL_OFF_T double
#define CURLOPT_XFERINFOFUNCTION CURLOPT_PROGRESSFUNCTION
#endif

int curlProgress(void *, CURL_OFF_T, CURL_OFF_T, CURL_OFF_T, CURL_OFF_T)
int curlProgress(void *, curl_off_t, curl_off_t, curl_off_t, curl_off_t)
{
return errorstream::interrupt ? -1 : 0;
}
Expand Down

0 comments on commit fb0c259

Please sign in to comment.