changeset 5347:fabb85fb8e37 draft

logerr: Remove setvbuf diagnostic - it's not critical
author Roy Marples <roy@marples.name>
date Wed, 10 Jun 2020 14:31:03 +0100
parents 3ceefc13699e
children 5d4210eb0187
files src/logerr.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/logerr.c	Wed Jun 10 14:16:08 2020 +0100
+++ b/src/logerr.c	Wed Jun 10 14:31:03 2020 +0100
@@ -370,8 +370,7 @@
 	/* Cache timezone */
 	tzset();
 
-	if (setvbuf(stderr, ctx->log_buf, _IOLBF, sizeof(ctx->log_buf)) == -1)
-		fprintf(stderr, "%s: %s\n", __func__, strerror(errno));
+	(void)setvbuf(stderr, ctx->log_buf, _IOLBF, sizeof(ctx->log_buf));
 
 	if (path == NULL) {
 		int opts = 0;