shithub: scc

Download patch

ref: 4cf31fcfe6db15aa70c8cb1f38894651ef168c16
parent: bb96b17c2324d66d287c0e65ccddc805e91ed68f
author: Quentin Rameau <[email protected]>
date: Thu Jun 2 19:54:30 EDT 2016

[driver] make functions static

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -45,7 +45,7 @@
 static int failedtool = NR_TOOLS;
 static int Eflag, Sflag, kflag;
 
-void
+static void
 cleanup(void)
 {
 	int i;
@@ -73,7 +73,7 @@
 	cleanup();
 }
 
-int
+static int
 inittool(int tool)
 {
 	struct tool *t = &tools[tool];
@@ -111,7 +111,7 @@
 	return tool;
 }
 
-char *
+static char *
 newfileext(char *name, char *ext)
 {
 	char *new, *dot;
@@ -133,7 +133,7 @@
 	return new;
 }
 
-int
+static int
 settool(int tool, char *input, int output)
 {
 	struct tool *t = &tools[tool];
@@ -183,7 +183,7 @@
 	return tool;
 }
 
-void
+static void
 spawn(int t)
 {
 	struct tool *tool = &tools[t];
@@ -209,7 +209,7 @@
 	}
 }
 
-void
+static void
 build(char *file)
 {
 	pid_t pid;
@@ -273,7 +273,7 @@
 	cleanup();
 }
 
-void
+static void
 addarg(int tool, char *arg) {
 	struct tool *t = &tools[tool];