Declare functions as static and move global variables to the top;
no functional changes.
This commit is contained in:
parent
77339e1cdc
commit
05d43d9882
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242265
@ -70,14 +70,16 @@ __FBSDID("$FreeBSD$");
|
|||||||
/* the optimization warning string template */
|
/* the optimization warning string template */
|
||||||
#define OPTWARN "should optimize for %s with minfree %s %d%%"
|
#define OPTWARN "should optimize for %s with minfree %s %d%%"
|
||||||
|
|
||||||
|
static int blocks;
|
||||||
|
static char clrbuf[MAXBSIZE];
|
||||||
static struct uufsd disk;
|
static struct uufsd disk;
|
||||||
#define sblock disk.d_fs
|
#define sblock disk.d_fs
|
||||||
|
|
||||||
void usage(void);
|
static void usage(void);
|
||||||
void printfs(void);
|
static void printfs(void);
|
||||||
int journal_alloc(int64_t size);
|
static int journal_alloc(int64_t size);
|
||||||
void journal_clear(void);
|
static void journal_clear(void);
|
||||||
void sbdirty(void);
|
static void sbdirty(void);
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
@ -545,16 +547,13 @@ main(int argc, char *argv[])
|
|||||||
err(12, "%s", special);
|
err(12, "%s", special);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
sbdirty(void)
|
sbdirty(void)
|
||||||
{
|
{
|
||||||
disk.d_fs.fs_flags |= FS_UNCLEAN | FS_NEEDSFSCK;
|
disk.d_fs.fs_flags |= FS_UNCLEAN | FS_NEEDSFSCK;
|
||||||
disk.d_fs.fs_clean = 0;
|
disk.d_fs.fs_clean = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int blocks;
|
|
||||||
static char clrbuf[MAXBSIZE];
|
|
||||||
|
|
||||||
static ufs2_daddr_t
|
static ufs2_daddr_t
|
||||||
journal_balloc(void)
|
journal_balloc(void)
|
||||||
{
|
{
|
||||||
@ -880,7 +879,7 @@ indir_fill(ufs2_daddr_t blk, int level, int *resid)
|
|||||||
/*
|
/*
|
||||||
* Clear the flag bits so the journal can be removed.
|
* Clear the flag bits so the journal can be removed.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
journal_clear(void)
|
journal_clear(void)
|
||||||
{
|
{
|
||||||
struct ufs1_dinode *dp1;
|
struct ufs1_dinode *dp1;
|
||||||
@ -911,7 +910,7 @@ journal_clear(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
journal_alloc(int64_t size)
|
journal_alloc(int64_t size)
|
||||||
{
|
{
|
||||||
struct ufs1_dinode *dp1;
|
struct ufs1_dinode *dp1;
|
||||||
@ -1060,7 +1059,7 @@ journal_alloc(int64_t size)
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n",
|
fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n",
|
||||||
@ -1073,7 +1072,7 @@ usage(void)
|
|||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
printfs(void)
|
printfs(void)
|
||||||
{
|
{
|
||||||
warnx("POSIX.1e ACLs: (-a) %s",
|
warnx("POSIX.1e ACLs: (-a) %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user