shithub: scc

Download patch

ref: 1f4c8ba4ed8412a824dde705afd4613d661cc68b
parent: 0d42a41545441b5c017742baf75863d843f0b451
author: Quentin Rameau <[email protected]>
date: Thu Jun 2 08:36:37 EDT 2016

[driver] fix missing variables from build()

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -144,7 +144,8 @@
 void
 build(char *file)
 {
-	int tool, out, keepfile;
+	pid_t pid;
+	int i, st, tool, out, keepfile;
 	static int preout;
 
 	for (tool = CC1; tool < NR_TOOLS; tool = out) {
@@ -207,9 +208,6 @@
 int
 main(int argc, char *argv[])
 {
-	int st, i;
-	pid_t pid;
-
 	atexit(terminate);
 
 	arch = getenv("ARCH");