File musl-1.1.16-fix.patch of Package musl

diff -Ndurp musl-1.1.16/src/locale/strfmon.c musl-1.1.16-fix/src/locale/strfmon.c
--- musl-1.1.16/src/locale/strfmon.c	2017-01-01 05:27:17.009525152 +0200
+++ musl-1.1.16-fix/src/locale/strfmon.c	2017-04-23 02:14:02.420908505 +0300
@@ -9,7 +9,7 @@ static ssize_t vstrfmon_l(char *s, size_
 {
 	size_t l;
 	double x;
-	int fill, nogrp, negpar, nosym, left, intl;
+	int left;
 	int lp, rp, w, fw;
 	char *s0=s;
 	for (; n && *fmt; ) {
@@ -22,25 +22,15 @@ static ssize_t vstrfmon_l(char *s, size_
 		fmt++;
 		if (*fmt == '%') goto literal;
 
-		fill = ' ';
-		nogrp = 0;
-		negpar = 0;
-		nosym = 0;
 		left = 0;
 		for (; ; fmt++) {
 			switch (*fmt) {
 			case '=':
-				fill = *++fmt;
-				continue;
+				++fmt;
 			case '^':
-				nogrp = 1;
-				continue;
 			case '(':
-				negpar = 1;
 			case '+':
-				continue;
 			case '!':
-				nosym = 1;
 				continue;
 			case '-':
 				left = 1;
@@ -58,7 +48,7 @@ static ssize_t vstrfmon_l(char *s, size_
 		if (*fmt=='.') for (rp=0, fmt++; isdigit(*fmt); fmt++)
 			rp = 10*rp + (*fmt-'0');
 
-		intl = *fmt++ == 'i';
+		fmt++;
 
 		w = lp + 1 + rp;
 		if (!left && fw>w) w = fw;
diff -Ndurp musl-1.1.16/src/stdio/__stdio_exit.c musl-1.1.16-fix/src/stdio/__stdio_exit.c
--- musl-1.1.16/src/stdio/__stdio_exit.c	2017-01-01 05:27:17.009525152 +0200
+++ musl-1.1.16-fix/src/stdio/__stdio_exit.c	2017-04-23 02:14:02.420908505 +0300
@@ -8,7 +8,7 @@ weak_alias(dummy_file, __stderr_used);
 static void close_file(FILE *f)
 {
 	if (!f) return;
-	FFINALLOCK(f);
+	if (f->lock >= 0) __lockfile(f);
 	if (f->wpos > f->wbase) f->write(f, 0, 0);
 	if (f->rpos < f->rend) f->seek(f, f->rpos-f->rend, SEEK_CUR);
 }
openSUSE Build Service is sponsored by