← Commit list

bb56f325a4

Viktor Szakats
Viktor Szakats
2026-02-08
SUCCESS Duration: 635s

Subject

curl_get_line: drop single-use macro

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curl_get_line.c+1 -3
@@ -28,8 +28,6 @@
#include "curl_get_line.h"
-#define appendnl(b) curlx_dyn_addn(buf, "\n", 1)
-
/*
* Curl_get_line() returns only complete whole lines that end with newline.
* When 'eof' is set TRUE, the last line has been read.
@@ -60,7 +58,7 @@ CURLcode Curl_get_line(struct dynbuf *buf, FILE *input, bool *eof)
return CURLE_OK; /* all good */
if(*eof)
/* append a newline */
- return appendnl(buf);
+ return curlx_dyn_addn(buf, "\n", 1);
/* otherwise get next line to append */
}
/* UNREACHABLE */