From 5894bcd46397ff7e1f7f4baf32008353681de919 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 20 Feb 2012 17:44:51 +0100 Subject: fsck: fix coding style Signed-off-by: Karel Zak --- fsck/fsck.c | 57 ++++++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 27 deletions(-) (limited to 'fsck/fsck.c') diff --git a/fsck/fsck.c b/fsck/fsck.c index defbdae7a..ceaa5a62c 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -115,32 +115,35 @@ struct fsck_instance { /* * Global variables for options */ -char *devices[MAX_DEVICES]; -char *args[MAX_ARGS]; -int num_devices, num_args; - -int lockdisk = 0; -int verbose = 0; -int doall = 0; -int noexecute = 0; -int serialize = 0; -int skip_root = 0; -int ignore_mounted = 0; -int notitle = 0; -int parallel_root = 0; -int progress = 0; -int progress_fd = 0; -int force_all_parallel = 0; -int num_running = 0; -int max_running = 0; -volatile int cancel_requested = 0; -int kill_sent = 0; -char *fstype = NULL; -struct fsck_instance *instance_list; -const char fsck_prefix_path[] = FS_SEARCH_PATH; -char *fsck_path = 0; - -/* parsed fstab */ +static char *devices[MAX_DEVICES]; +static char *args[MAX_ARGS]; +static int num_devices, num_args; + +static int lockdisk; +static int verbose; +static int doall; +static int noexecute; +static int serialize; +static int skip_root; +static int ignore_mounted; +static int notitle; +static int parallel_root; +static int progress; +static int progress_fd; +static int force_all_parallel; + +static int num_running; +static int max_running; + +static volatile int cancel_requested; +static int kill_sent; +static char *fstype; +static struct fsck_instance *instance_list; + +static const char fsck_prefix_path[] = FS_SEARCH_PATH; +static char *fsck_path; + +/* parsed fstab and mtab */ static struct libmnt_table *fstab, *mtab; static struct libmnt_cache *mntcache; @@ -800,7 +803,7 @@ struct fs_type_compile { static void compile_fs_type(char *fs_type, struct fs_type_compile *cmp) { - char *cp, *list, *s; + char *cp, *list, *s; int num = 2; int negate, first_negate = 1; -- cgit v1.2.3-55-g7522