sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 0c17cd0fb39c47e2b9c8759dc23eef2d9e3bdfaa
parent 4092196fdcdf8c39c66e5fc8a23151f70ba16662
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat Mar  7 13:33:39 +0100

staticize some functions

Diffstat:
chmod.c | 2+-
nl.c | 2+-
split.c | 4++--
touch.c | 2+-
wc.c | 4++--
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/chmod.c b/chmod.c @@ -8,7 +8,7 @@ static char *modestr = ""; static mode_t mask = 0; static int ret = 0; -void +static void chmodr(const char *path, int depth) { struct stat st; diff --git a/nl.c b/nl.c @@ -20,7 +20,7 @@ static size_t startnum = 1; static size_t incr = 1; static regex_t preg; -void +static void nl(const char *name, FILE *fp) { char *buf = NULL; diff --git a/split.c b/split.c @@ -9,7 +9,7 @@ static int base = 26, start = 'a'; -int +static int itostr(char *str, int x, int n) { str[n] = '\0'; @@ -22,7 +22,7 @@ itostr(char *str, int x, int n) return 0; } -FILE * +static FILE * nextfile(FILE *f, char *buf, int plen, int slen) { static int filecount = 0; diff --git a/touch.c b/touch.c @@ -44,7 +44,7 @@ touch(const char *file) touch(file); } -time_t +static time_t parsetime(char *str, time_t current) { struct tm *cur, t; diff --git a/wc.c b/wc.c @@ -7,7 +7,7 @@ static int wflag = 0; static char cmode = 0; static size_t tc = 0, tl = 0, tw = 0; -void +static void output(const char *str, size_t nc, size_t nl, size_t nw) { int noflags = !cmode && !lflag && !wflag; @@ -24,7 +24,7 @@ output(const char *str, size_t nc, size_t nl, size_t nw) putchar('\n'); } -void +static void wc(FILE *fp, const char *str) { int word = 0, rlen;