From 0867a9d9f710e836aa2733dfe158897777dda4de Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 1 Jul 2025 15:10:26 +0200 Subject: [PATCH] ghiper: prefer L suffix over (long) --- docs/examples/ghiper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/ghiper.c b/docs/examples/ghiper.c index 7bc6bef0da..7d8449cdf0 100644 --- a/docs/examples/ghiper.c +++ b/docs/examples/ghiper.c @@ -66,7 +66,7 @@ #include #define MSG_OUT g_print /* Change to "g_error" to write to stderr */ -#define SHOW_VERBOSE 0 /* Set to non-zero for libcurl messages */ +#define SHOW_VERBOSE 0L /* Set to non-zero for libcurl messages */ #define SHOW_PROGRESS 0 /* Set to non-zero to enable progress callback */ /* Global information, common to all connections */ @@ -311,7 +311,7 @@ static void new_conn(const char *url, struct GlobalInfo *g) curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url); curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb); curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn); - curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, (long)SHOW_VERBOSE); + curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, SHOW_VERBOSE); curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error); curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn); curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, SHOW_PROGRESS ? 0L : 1L);