diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-21 23:46:04 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-21 23:46:04 +0100 |
commit | a091370e612b79452ac882e299d0e85154a64b59 (patch) | |
tree | e3af7375e90955609424ebe19442ddb3d53d6e09 /src/util.c | |
parent | Remove dependency on libsimple since it's not portable (diff) | |
download | redshift-ng-a091370e612b79452ac882e299d0e85154a64b59.tar.gz redshift-ng-a091370e612b79452ac882e299d0e85154a64b59.tar.bz2 redshift-ng-a091370e612b79452ac882e299d0e85154a64b59.tar.xz |
misc stuff
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r-- | src/util.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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; } |