[hackers] [scc] [driver] make functions static || Quentin Rameau

From: <git_AT_suckless.org>
Date: Thu, 2 Jun 2016 23:55:46 +0200 (CEST)

commit 028b46a65d31a4deb1c104c6f7a30a9e959e2a1d
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Jun 2 23:54:30 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu Jun 2 23:54:30 2016 +0200

    [driver] make functions static

diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index a2ee1a4..d3edc38 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -45,7 +45,7 @@ static char *outfiles[NR_TOOLS + 1];
 static int failedtool = NR_TOOLS;
 static int Eflag, Sflag, kflag;
 
-void
+static void
 cleanup(void)
 {
         int i;
_AT_@ -73,7 +73,7 @@ terminate(void)
         cleanup();
 }
 
-int
+static int
 inittool(int tool)
 {
         struct tool *t = &tools[tool];
_AT_@ -111,7 +111,7 @@ inittool(int tool)
         return tool;
 }
 
-char *
+static char *
 newfileext(char *name, char *ext)
 {
         char *new, *dot;
_AT_@ -133,7 +133,7 @@ newfileext(char *name, char *ext)
         return new;
 }
 
-int
+static int
 settool(int tool, char *input, int output)
 {
         struct tool *t = &tools[tool];
_AT_@ -183,7 +183,7 @@ settool(int tool, char *input, int output)
         return tool;
 }
 
-void
+static void
 spawn(int t)
 {
         struct tool *tool = &tools[t];
_AT_@ -209,7 +209,7 @@ spawn(int t)
         }
 }
 
-void
+static void
 build(char *file)
 {
         pid_t pid;
_AT_@ -273,7 +273,7 @@ build(char *file)
         cleanup();
 }
 
-void
+static void
 addarg(int tool, char *arg) {
         struct tool *t = &tools[tool];
 
Received on Thu Jun 02 2016 - 23:55:46 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 03 2016 - 00:00:33 CEST