void-packages/srcpkgs/gutenprint/patches/musl.patch
2018-11-27 00:25:15 -02:00

19 lines
809 B
Diff

commit 6b8ae64056133e2b4775a201eb527fdc143d669c
Author: Cameron Nemo <camerontnorman@gmail.com>
Date: Sun Nov 25 10:09:21 2018 -0800
src/xml/printers: remove assignment to read-only variable
diff --git src/xml/printers/check_duplicate_printers.test.c src/xml/printers/check_duplicate_printers.test.c
index 52c46e65..d5d2771c 100644
--- src/xml/printers/check_duplicate_printers.c
+++ src/xml/printers/check_duplicate_printers.c
@@ -34,7 +34,7 @@ main(int argc, char **argv)
if (getenv("BUILD_VERBOSE"))
dup2(2, 3);
(void) snprintf(path, PATH_MAX, "%scheck_duplicate_printers_%d.log", getenv("STP_TEST_LOG_PREFIX"), getpid());
- stdout = freopen(path, "w", stdout);
+ freopen(path, "w", stdout);
dup2(1, 2);
}
setenv("STP_CHECK_DUPLICATE_PRINTERS", "TRUE", 1);