diff --git a/cmdline/import.c b/cmdline/import.c index 6284dca2..cf01a5ef 100644 --- a/cmdline/import.c +++ b/cmdline/import.c @@ -272,7 +272,7 @@ static void import_dir(struct snapraid_state* state, const char* dir) /* because we use a directory reading method that doesn't read info about ReparsePoint. */ /* Note that here we cannot call here lstat_sync(), because we don't know what kind */ /* of file is it, and lstat_sync() doesn't always work */ - if (st.st_mode == 0) { + if (st.st_mode == 0) { if (lstat(path, &st) != 0) { /* LCOV_EXCL_START */ fprintf(stderr, "Error in stat file/directory '%s'. %s.\n", path, strerror(errno)); diff --git a/cmdline/mingw.c b/cmdline/mingw.c index fb712437..507329a1 100644 --- a/cmdline/mingw.c +++ b/cmdline/mingw.c @@ -393,7 +393,7 @@ static void windows_attr2stat(DWORD FileAttributes, DWORD ReparseTag, struct win case IO_REPARSE_TAG_MOUNT_POINT : st->st_mode = S_IFCHR; st->st_desc = "reparse-point-mount"; - break; + break; case IO_REPARSE_TAG_NFS : st->st_mode = S_IFCHR; st->st_desc = "reparse-point-nfs"; diff --git a/cmdline/pool.c b/cmdline/pool.c index 481381ff..0bc7da36 100644 --- a/cmdline/pool.c +++ b/cmdline/pool.c @@ -70,7 +70,7 @@ static int clean_dir(struct snapraid_state* state, const char* dir) /* if the st_mode field is missing, takes care to fill it using normal lstat() */ /* at now this can happen only in Windows */ - if (st.st_mode == 0) { + if (st.st_mode == 0) { if (lstat(path_next, &st) != 0) { /* LCOV_EXCL_START */ fprintf(stderr, "Error in stat file/directory '%s'. %s.\n", path_next, strerror(errno)); diff --git a/cmdline/scan.c b/cmdline/scan.c index 745ee26c..9eb30636 100644 --- a/cmdline/scan.c +++ b/cmdline/scan.c @@ -1211,7 +1211,7 @@ static int scan_dir(struct snapraid_scan* scan, int is_diff, const char* dir, co /* because we use a directory reading method that doesn't read info about ReparsePoint. */ /* Note that here we cannot call here lstat_sync(), because we don't know what kind */ /* of file is it, and lstat_sync() doesn't always work */ - if (st->st_mode == 0) { + if (st->st_mode == 0) { if (lstat(path_next, st) != 0) { /* LCOV_EXCL_START */ fprintf(stderr, "Error in stat file/directory '%s'. %s.\n", path_next, strerror(errno)); @@ -1523,7 +1523,7 @@ void state_scan(struct snapraid_state* state, int is_diff) /* if the file is not empty, count duplicate physical offsets */ if (state->opt.force_order == SORT_PHYSICAL && file->size != 0) { if (phy_file_last != 0 && file->physical == phy_last - /* files without offset are expected to have duplicates */ + /* files without offset are expected to have duplicates */ && phy_last != FILEPHY_WITHOUT_OFFSET ) { /* if verbose, prints the list of duplicates real offsets */ diff --git a/cmdline/search.c b/cmdline/search.c index 46485863..f2752b22 100644 --- a/cmdline/search.c +++ b/cmdline/search.c @@ -198,7 +198,7 @@ static void search_dir(struct snapraid_state* state, const char* dir) /* because we use a directory reading method that doesn't read info about ReparsePoint. */ /* Note that here we cannot call here lstat_sync(), because we don't know what kind */ /* of file is it, and lstat_sync() doesn't always work */ - if (st.st_mode == 0) { + if (st.st_mode == 0) { if (lstat(path, &st) != 0) { /* LCOV_EXCL_START */ fprintf(stderr, "Error in stat file/directory '%s'. %s.\n", path, strerror(errno)); diff --git a/cmdline/state.c b/cmdline/state.c index 2d9121fa..26316a7a 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -4702,7 +4702,7 @@ int state_progress(struct snapraid_state* state, block_off_t blockpos, block_off /* if we have at least 5 measures */ if (state->progress_tick >= 5 - /* or if we are running in test mode, with at least one measure */ + /* or if we are running in test mode, with at least one measure */ || (state->opt.force_progress && state->progress_tick >= 1) ) { int oldest; diff --git a/cmdline/sync.c b/cmdline/sync.c index c9607734..a5b4cd7c 100644 --- a/cmdline/sync.c +++ b/cmdline/sync.c @@ -950,7 +950,7 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari if ((state->autosave != 0 && autosavedone >= autosavelimit /* if we have reached the limit */ && autosavemissing >= autosavelimit) /* if we have at least a full step to do */ - /* or if we have a forced autosave at the specified block */ + /* or if we have a forced autosave at the specified block */ || (state->opt.force_autosave_at != 0 && state->opt.force_autosave_at == i) ) { autosavedone = 0; /* restart the counter */