]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
logerr: Remove setvbuf diagnostic - it's not critical
authorRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 13:31:03 +0000 (14:31 +0100)
committerRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 13:31:03 +0000 (14:31 +0100)
src/logerr.c

index 1c5217cd3e495c7818d8a838186307e447ddb4ce..817c53ca4d1bd76868f96e7e00e2b02594273b5f 100644 (file)
@@ -370,8 +370,7 @@ logopen(const char *path)
        /* 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;