summaryrefslogtreecommitdiffstats
path: root/bin/df/df.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-10-13 09:36:05 +0000
committerjoerg <joerg@FreeBSD.org>1997-10-13 09:36:05 +0000
commitaa68663b55055d5f2007ca7d41814362af913e7c (patch)
treeb6cbeedd3712f4c44a709c756a287f5c6864271d /bin/df/df.c
parentd977718fc1001cff0414396d7a5c2a9cbfbdace0 (diff)
downloadFreeBSD-src-aa68663b55055d5f2007ca7d41814362af913e7c.zip
FreeBSD-src-aa68663b55055d5f2007ca7d41814362af913e7c.tar.gz
Style police: keep a variable list in alphabetical order, and add
pointless paren's to return statements. Nitpicked by: bde :)
Diffstat (limited to 'bin/df/df.c')
-rw-r--r--bin/df/df.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index d89c7ef..5fbfe72 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -47,7 +47,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)df.c 8.9 (Berkeley) 5/8/95";
#else
static const char rcsid[] =
- "$Id: df.c,v 1.17 1997/08/07 21:31:00 steve Exp $";
+ "$Id: df.c,v 1.18 1997/10/12 13:55:43 joerg Exp $";
#endif
#endif /* not lint */
@@ -84,7 +84,7 @@ main(argc, argv)
struct stat stbuf;
struct statfs statfsbuf, *mntbuf;
long mntsize;
- int ch, err, i, maxwidth, width, rv;
+ int ch, err, i, maxwidth, rv, width;
char *mntpt, **vfslist;
vfslist = NULL;
@@ -316,11 +316,11 @@ ufs_df(file, maxwidth)
if ((rfd = open(file, O_RDONLY)) < 0) {
warn("%s", file);
- return 1;
+ return (1);
}
if (bread((off_t)SBOFF, &sblock, SBSIZE) == 0) {
(void)close(rfd);
- return 1;
+ return (1);
}
sfsp = &statfsbuf;
sfsp->f_type = 1;
@@ -342,7 +342,7 @@ ufs_df(file, maxwidth)
memmove(&sfsp->f_mntfromname[0], file, MNAMELEN);
prtstat(sfsp, maxwidth);
(void)close(rfd);
- return 0;
+ return (0);
}
int
OpenPOWER on IntegriCloud