[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] mintlib fix



Another tiny and obvious warning fix.

--
Vincent Rivière
diff -u -r1.4 system.c
--- posix/system.c	6 Dec 2005 19:27:58 -0000	1.4
+++ posix/system.c	28 Apr 2008 21:47:57 -0000
@@ -334,8 +334,16 @@
 
 	retval = spawnvp(P_WAIT, argv[0], argv);
 
-	if (*infile) (void)(Fforce(0,oldin), Fclose(oldin), Fclose(infd));
-	if (*outfile) (void)(Fforce(1,oldout), Fclose(oldout), Fclose(outfd));
+	if (*infile) {
+		(void)Fforce(0,oldin);
+		(void)Fclose(oldin);
+		(void)Fclose(infd);
+	}
+	if (*outfile) {
+		(void)Fforce(1,oldout);
+		(void)Fclose(oldout);
+		(void)Fclose(outfd);
+	}
 	free(argv);
 	_argfree(al);
 	return retval;