[klibc] [PATCH 3/7] fstpye: no need for braces around return values
maximilian attems
max at stro.at
Tue Jul 5 11:06:28 PDT 2011
Signed-off-by: maximilian attems <max at stro.at>
---
usr/kinit/fstype/fstype.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c
index 451d60c..9f0f931 100644
--- a/usr/kinit/fstype/fstype.c
+++ b/usr/kinit/fstype/fstype.c
@@ -124,7 +124,7 @@ static int fs_proc_check(const char *fs_name)
f = fopen("/proc/filesystems", "r");
if (!f)
- return (0);
+ return 0;
while (fgets(buf, sizeof(buf), f)) {
cp = buf;
if (!isspace(*cp)) {
@@ -141,11 +141,11 @@ static int fs_proc_check(const char *fs_name)
*t = 0;
if (!strcmp(fs_name, cp)) {
fclose(f);
- return (1);
+ return 1;
}
}
fclose(f);
- return (0);
+ return 0;
}
/*
@@ -160,12 +160,12 @@ static int check_for_modules(const char *fs_name)
int i;
if (uname(&uts))
- return (0);
+ return 0;
snprintf(buf, sizeof(buf), "/lib/modules/%s/modules.dep", uts.release);
f = fopen(buf, "r");
if (!f)
- return (0);
+ return 0;
while (fgets(buf, sizeof(buf), f)) {
if ((cp = strchr(buf, ':')) != NULL)
*cp = 0;
@@ -181,11 +181,11 @@ static int check_for_modules(const char *fs_name)
}
if (!strcmp(cp, fs_name)) {
fclose(f);
- return (1);
+ return 1;
}
}
fclose(f);
- return (0);
+ return 0;
}
static int base_ext4_image(const void *buf, unsigned long long *bytes,
--
1.7.5.4
More information about the klibc
mailing list