commit ef78343baca4dddb99139d42e7e2bbfc061da77c
parent 041e55424116a414f037f539d2bccc3b247e74ba
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 26 Apr 2026 22:09:35 +0200
use bool for curl_paused
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/paivana-httpd_reverse.c b/src/backend/paivana-httpd_reverse.c
@@ -246,7 +246,7 @@ struct HttpRequest
/**
* Did we pause CURL processing?
*/
- int curl_paused;
+ bool curl_paused;
/**
* Concatenated value of the client's Via header(s), if any. Per
@@ -761,7 +761,7 @@ curl_download_cb (void *ptr,
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Download callback goes to sleep\n");
- hr->curl_paused = GNUNET_YES;
+ hr->curl_paused = true;
return CURL_WRITEFUNC_PAUSE;
}
GNUNET_assert (REQUEST_STATE_PROXY_DOWNLOAD_STARTED ==
@@ -838,9 +838,9 @@ curl_upload_cb (void *buf,
if ( (0 == hr->io_len) &&
(REQUEST_STATE_PROXY_DOWNLOAD_STARTED == hr->state) )
{
- if (GNUNET_YES == hr->curl_paused)
+ if (hr->curl_paused)
{
- hr->curl_paused = GNUNET_NO;
+ hr->curl_paused = false;
curl_easy_pause (hr->curl,
CURLPAUSE_CONT);
}