staticize some functions

This commit is contained in:
Hiltjo Posthuma 2015-03-07 13:33:39 +01:00
parent 4092196fdc
commit 0c17cd0fb3
5 changed files with 7 additions and 7 deletions

View File

@ -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;

2
nl.c
View File

@ -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;

View File

@ -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;

View File

@ -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;

4
wc.c
View File

@ -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;