summaryrefslogtreecommitdiff
path: root/e2fsprogs/old_e2fsprogs/fsck.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-09-27 14:06:06 +0000
committerDenis Vlasenko2008-09-27 14:06:06 +0000
commitbb04506dc8bfdc92511b1cc0872e946ebe1ac087 (patch)
tree77bc1bff460002de2e64759208b90dff0a6e313b /e2fsprogs/old_e2fsprogs/fsck.c
parentd6855d1b5043089fc606f7e62679babb68c7cbb4 (diff)
downloadbusybox-bb04506dc8bfdc92511b1cc0872e946ebe1ac087.zip
busybox-bb04506dc8bfdc92511b1cc0872e946ebe1ac087.tar.gz
more style fixes, no code changes
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/fsck.c')
-rw-r--r--e2fsprogs/old_e2fsprogs/fsck.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c
index 9cb9f75..cc27353 100644
--- a/e2fsprogs/old_e2fsprogs/fsck.c
+++ b/e2fsprogs/old_e2fsprogs/fsck.c
@@ -533,21 +533,21 @@ static struct fs_info *lookup(char *filesys)
/* Find fsck program for a given fs type. */
static char *find_fsck(char *type)
{
- char *s;
- const char *tpl;
- char *p = string_copy(fsck_path);
- struct stat st;
+ char *s;
+ const char *tpl;
+ char *p = string_copy(fsck_path);
+ struct stat st;
- /* Are we looking for a program or just a type? */
- tpl = (strncmp(type, "fsck.", 5) ? "%s/fsck.%s" : "%s/%s");
+ /* Are we looking for a program or just a type? */
+ tpl = (strncmp(type, "fsck.", 5) ? "%s/fsck.%s" : "%s/%s");
- for(s = strtok(p, ":"); s; s = strtok(NULL, ":")) {
- s = xasprintf(tpl, s, type);
- if (stat(s, &st) == 0) break;
- free(s);
- }
- free(p);
- return s;
+ for (s = strtok(p, ":"); s; s = strtok(NULL, ":")) {
+ s = xasprintf(tpl, s, type);
+ if (stat(s, &st) == 0) break;
+ free(s);
+ }
+ free(p);
+ return s;
}
static int progress_active(void)
@@ -885,7 +885,7 @@ static void compile_fs_type(char *fs_type, struct fs_type_compile *cmp)
list = string_copy(fs_type);
num = 0;
s = strtok(list, ",");
- while(s) {
+ while (s) {
negate = 0;
if (strncmp(s, "no", 2) == 0) {
s += 2;
@@ -930,7 +930,7 @@ static int opt_in_list(char *opt, char *optlist)
list = string_copy(optlist);
s = strtok(list, ",");
- while(s) {
+ while (s) {
if (strcmp(s, opt) == 0) {
free(list);
return 1;