summaryrefslogtreecommitdiff
path: root/df.c
diff options
context:
space:
mode:
authorEric Andersen1999-11-12 01:30:18 +0000
committerEric Andersen1999-11-12 01:30:18 +0000
commit96bcfd346b436aef16b29d9157b80fd4148b1421 (patch)
tree339ad54804ab9399bbdb8a87e7bbc76408a11019 /df.c
parent0dfac6b9cec891b8d523f85d7989d772a1447828 (diff)
downloadbusybox-96bcfd346b436aef16b29d9157b80fd4148b1421.zip
busybox-96bcfd346b436aef16b29d9157b80fd4148b1421.tar.gz
Latest and greatest
-Erik
Diffstat (limited to 'df.c')
-rw-r--r--df.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/df.c b/df.c
index a84a330..8b8db78 100644
--- a/df.c
+++ b/df.c
@@ -42,7 +42,7 @@ static int df(char *device, const char *mountPoint)
if (statfs(mountPoint, &s) != 0) {
perror(mountPoint);
- return 1;
+ return FALSE;
}
if (s.f_blocks > 0) {
@@ -64,7 +64,7 @@ static int df(char *device, const char *mountPoint)
}
- return 0;
+ return TRUE;
}
extern int df_main(int argc, char **argv)
@@ -83,15 +83,15 @@ extern int df_main(int argc, char **argv)
if ((mountEntry = findMountPoint(argv[1], mtab_file)) ==
0) {
fprintf(stderr, "%s: can't find mount point.\n", argv[1]);
- return 1;
+ exit( FALSE);
}
status = df(mountEntry->mnt_fsname, mountEntry->mnt_dir);
if (status != 0)
- return status;
+ exit( status);
argc--;
argv++;
}
- return 0;
+ exit( TRUE);
} else {
FILE *mountTable;
struct mntent *mountEntry;
@@ -105,10 +105,10 @@ extern int df_main(int argc, char **argv)
while ((mountEntry = getmntent(mountTable))) {
int status = df(mountEntry->mnt_fsname, mountEntry->mnt_dir);
if (status)
- return status;
+ exit( status);
}
endmntent(mountTable);
}
- return 0;
+ exit( TRUE);
}