mirror of
https://github.com/curl/curl.git
synced 2026-07-30 16:48:03 +03:00
tidy-up: miscellaneous
- INSTALL-CMAKE.md: add missing periods, text fixes. - md4, md5: sync variables names. - curl_trc: sync an argument type. - docs/examples: sync debug/trace function copies, constify, tidy-ups. - replace commented code with `#if 0`. - drop redundant parenthesis (macro values, `return`, around single variables, function calls). - fix indentation, apply clang-format in places. Closes #20481
This commit is contained in:
parent
ca5efd02b6
commit
3003c32cb2
62 changed files with 291 additions and 281 deletions
|
|
@ -158,8 +158,8 @@ static gboolean timer_cb(gpointer data)
|
|||
struct GlobalInfo *g = (struct GlobalInfo *)data;
|
||||
CURLMcode mresult;
|
||||
|
||||
mresult = curl_multi_socket_action(g->multi,
|
||||
CURL_SOCKET_TIMEOUT, 0, &g->still_running);
|
||||
mresult = curl_multi_socket_action(g->multi, CURL_SOCKET_TIMEOUT, 0,
|
||||
&g->still_running);
|
||||
mcode_or_die("timer_cb: curl_multi_socket_action", mresult);
|
||||
check_multi_info(g);
|
||||
return FALSE;
|
||||
|
|
@ -360,7 +360,7 @@ static gboolean fifo_cb(GIOChannel *ch, GIOCondition condition, gpointer data)
|
|||
}
|
||||
else {
|
||||
buf = g_malloc(BUF_SIZE + 1);
|
||||
while(TRUE) {
|
||||
for(;;) {
|
||||
buf[BUF_SIZE] = '\0';
|
||||
g_io_channel_read_chars(ch, buf, BUF_SIZE, &len, &err);
|
||||
if(len) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue