From a091370e612b79452ac882e299d0e85154a64b59 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 21 Mar 2025 23:46:04 +0100 Subject: misc stuff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/util.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 595f236..26e09a7 100644 --- a/src/util.c +++ b/src/util.c @@ -271,9 +271,6 @@ vweprintf(const char *fmt, va_list args) { int saved_errno; const char *errstrprefix, *errstr; -#if !defined(WINDOWS) - int locked; -#endif saved_errno = errno; if (!*fmt) { @@ -289,19 +286,12 @@ vweprintf(const char *fmt, va_list args) errstrprefix = ""; errstr = ""; } -#if !defined(WINDOWS) - locked = !flock(STDERR_FILENO, LOCK_EX); -#endif fprintf(stderr, "%s: ", argv0); vfprintf(stderr, fmt, args); if (errstr) fprintf(stderr, "%s%s\n", errstrprefix, errstr); -#if !defined(WINDOWS) - if (locked) - flock(STDERR_FILENO, LOCK_UN); -#endif errno = saved_errno; } -- cgit v1.2.3-70-g09d2