Skip to content

Commit

Permalink
remove checksrc comments in tool_stderr.c, their work is unclear and …
Browse files Browse the repository at this point in the history
…do not follow the checksrc doc, but break the debug build
  • Loading branch information
sfc-gh-ext-simba-jz authored and Harry Xi committed Oct 17, 2023
1 parent 34c1fa4 commit 164bafd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/curl-8.4.0/src/tool_stderr.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ FILE *tool_stderr;

void tool_init_stderr(void)
{
/* !checksrc! disable STDERR 1 */
/* !check-src! disable STDERR 1 */
tool_stderr = stderr;
}

Expand All @@ -59,13 +59,13 @@ void tool_set_stderr_file(struct GlobalConfig *global, char *filename)

/* freopen the actual stderr (stdio.h stderr) instead of tool_stderr since
the latter may be set to stdout. */
/* !checksrc! disable STDERR 1 */
/* !check-src! disable STDERR 1 */
fp = freopen(filename, FOPEN_WRITETEXT, stderr);
if(!fp) {
/* stderr may have been closed by freopen. there is nothing to be done. */
DEBUGASSERT(0);
return;
}
/* !checksrc! disable STDERR 1 */
/* !check-src! disable STDERR 1 */
tool_stderr = stderr;
}

0 comments on commit 164bafd

Please sign in to comment.