mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
collect all "extern bla" stuff in extern.h in order to get cross-file
type checking. No bugs found.
This commit is contained in:
parent
65c0f49140
commit
d8e4c710eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124387
@ -61,9 +61,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include "mtree.h"
|
||||
#include "extern.h"
|
||||
|
||||
extern int uflag;
|
||||
extern int lineno;
|
||||
|
||||
#define INDENTNAMELEN 8
|
||||
#define LABEL \
|
||||
if (!label++) { \
|
||||
|
@ -64,12 +64,6 @@ __FBSDID("$FreeBSD$");
|
||||
#define INDENTNAMELEN 15
|
||||
#define MAXLINELEN 80
|
||||
|
||||
extern int ftsoptions;
|
||||
extern int dflag, iflag, nflag, sflag;
|
||||
extern u_int keys;
|
||||
extern char fullpath[MAXPATHLEN];
|
||||
extern int lineno;
|
||||
|
||||
static gid_t gid;
|
||||
static uid_t uid;
|
||||
static mode_t mode;
|
||||
|
@ -49,3 +49,11 @@ int check_excludes(const char *, const char *);
|
||||
void init_excludes(void);
|
||||
void read_excludes_file(const char *);
|
||||
const char * ftype(u_int type);
|
||||
|
||||
extern int ftsoptions;
|
||||
extern u_int keys;
|
||||
extern int lineno;
|
||||
extern int dflag, eflag, iflag, nflag, qflag, rflag, sflag, uflag;
|
||||
#ifdef MAXPATHLEN
|
||||
extern char fullpath[MAXPATHLEN];
|
||||
#endif
|
||||
|
@ -44,8 +44,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include "mtree.h"
|
||||
#include "extern.h"
|
||||
|
||||
extern int lineno;
|
||||
|
||||
typedef struct _key {
|
||||
const char *name; /* key name */
|
||||
u_int val; /* value */
|
||||
|
@ -47,11 +47,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include "mtree.h"
|
||||
#include "extern.h"
|
||||
|
||||
extern int ftsoptions;
|
||||
extern int dflag, eflag, qflag, rflag, sflag, uflag;
|
||||
extern char fullpath[MAXPATHLEN];
|
||||
extern int lineno;
|
||||
|
||||
static NODE *root;
|
||||
static char path[MAXPATHLEN];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user