Add missing static keywords to cut(1)
This commit is contained in:
parent
b168c3c84b
commit
41b662c583
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227162
@ -50,25 +50,25 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
int bflag;
|
static int bflag;
|
||||||
int cflag;
|
static int cflag;
|
||||||
wchar_t dchar;
|
static wchar_t dchar;
|
||||||
char dcharmb[MB_LEN_MAX + 1];
|
static char dcharmb[MB_LEN_MAX + 1];
|
||||||
int dflag;
|
static int dflag;
|
||||||
int fflag;
|
static int fflag;
|
||||||
int nflag;
|
static int nflag;
|
||||||
int sflag;
|
static int sflag;
|
||||||
|
|
||||||
size_t autostart, autostop, maxval;
|
static size_t autostart, autostop, maxval;
|
||||||
char * positions;
|
static char * positions;
|
||||||
|
|
||||||
int b_cut(FILE *, const char *);
|
static int b_cut(FILE *, const char *);
|
||||||
int b_n_cut(FILE *, const char *);
|
static int b_n_cut(FILE *, const char *);
|
||||||
int c_cut(FILE *, const char *);
|
static int c_cut(FILE *, const char *);
|
||||||
int f_cut(FILE *, const char *);
|
static int f_cut(FILE *, const char *);
|
||||||
void get_list(char *);
|
static void get_list(char *);
|
||||||
void needpos(size_t);
|
static void needpos(size_t);
|
||||||
static void usage(void);
|
static void usage(void);
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
@ -153,7 +153,7 @@ main(int argc, char *argv[])
|
|||||||
exit(rval);
|
exit(rval);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
get_list(char *list)
|
get_list(char *list)
|
||||||
{
|
{
|
||||||
size_t setautostart, start, stop;
|
size_t setautostart, start, stop;
|
||||||
@ -208,7 +208,7 @@ get_list(char *list)
|
|||||||
memset(positions + 1, '1', autostart);
|
memset(positions + 1, '1', autostart);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
needpos(size_t n)
|
needpos(size_t n)
|
||||||
{
|
{
|
||||||
static size_t npos;
|
static size_t npos;
|
||||||
@ -227,7 +227,7 @@ needpos(size_t n)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
b_cut(FILE *fp, const char *fname __unused)
|
b_cut(FILE *fp, const char *fname __unused)
|
||||||
{
|
{
|
||||||
int ch, col;
|
int ch, col;
|
||||||
@ -261,7 +261,7 @@ b_cut(FILE *fp, const char *fname __unused)
|
|||||||
* Although this function also handles the case where -n is not specified,
|
* Although this function also handles the case where -n is not specified,
|
||||||
* b_cut() ought to be much faster.
|
* b_cut() ought to be much faster.
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
b_n_cut(FILE *fp, const char *fname)
|
b_n_cut(FILE *fp, const char *fname)
|
||||||
{
|
{
|
||||||
size_t col, i, lbuflen;
|
size_t col, i, lbuflen;
|
||||||
@ -323,7 +323,7 @@ b_n_cut(FILE *fp, const char *fname)
|
|||||||
return (warned);
|
return (warned);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
c_cut(FILE *fp, const char *fname)
|
c_cut(FILE *fp, const char *fname)
|
||||||
{
|
{
|
||||||
wint_t ch;
|
wint_t ch;
|
||||||
@ -358,7 +358,7 @@ c_cut(FILE *fp, const char *fname)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
f_cut(FILE *fp, const char *fname)
|
f_cut(FILE *fp, const char *fname)
|
||||||
{
|
{
|
||||||
wchar_t ch;
|
wchar_t ch;
|
||||||
|
Loading…
Reference in New Issue
Block a user