From 5ab35a494d85058122391b71418ba218a14c9ed7 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 2 Aug 2025 12:07:16 +0200 Subject: [PATCH] lib1948.c constify, drop UNCONST --- tests/libtest/lib1948.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libtest/lib1948.c b/tests/libtest/lib1948.c index 98fa91e8d5..2a138ac695 100644 --- a/tests/libtest/lib1948.c +++ b/tests/libtest/lib1948.c @@ -25,7 +25,7 @@ typedef struct { - char *buf; + const char *buf; size_t len; } put_buffer; @@ -55,7 +55,7 @@ static CURLcode test_lib1948(const char *URL) easy_setopt(curl, CURLOPT_UPLOAD, 1L); easy_setopt(curl, CURLOPT_HEADER, 1L); easy_setopt(curl, CURLOPT_READFUNCTION, put_callback); - pbuf.buf = (char *)CURL_UNCONST(testput); + pbuf.buf = testput; pbuf.len = strlen(testput); easy_setopt(curl, CURLOPT_READDATA, &pbuf); easy_setopt(curl, CURLOPT_INFILESIZE, (long)strlen(testput));