From fb0c259606b8323e8b5d223f2fe66a485fbe17ac Mon Sep 17 00:00:00 2001 From: John Bowman Date: Sat, 18 Nov 2023 16:21:56 -0800 Subject: [PATCH] Fix warning message. --- parser.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/parser.cc b/parser.cc index 31df6f44f..cdda1f9a2 100644 --- a/parser.cc +++ b/parser.cc @@ -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; }