aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck/preen.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-03-12 16:58:35 +0000
committerBruce Evans <bde@FreeBSD.org>1997-03-12 16:58:35 +0000
commitbb19997c026f44ab860a200e48c492ede8c6a396 (patch)
treec929948d4f73b7131fbcc0c4fdb7bb1ea38b975e /sbin/quotacheck/preen.c
parenta2c6443276a1809237f48a2f03161c6b7eb6e1d4 (diff)
downloadsrc-bb19997c026f44ab860a200e48c492ede8c6a396.tar.gz
src-bb19997c026f44ab860a200e48c492ede8c6a396.zip
Finished (?) merging with Lite2: cleaned up #include mess.
Fixed style bugs in FreeBSD changes.
Notes
Notes: svn path=/head/; revision=23798
Diffstat (limited to 'sbin/quotacheck/preen.c')
-rw-r--r--sbin/quotacheck/preen.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/sbin/quotacheck/preen.c b/sbin/quotacheck/preen.c
index 09b47c37e9df..383467b15a91 100644
--- a/sbin/quotacheck/preen.c
+++ b/sbin/quotacheck/preen.c
@@ -38,13 +38,12 @@ static const char sccsid[] = "@(#)preen.c 8.5 (Berkeley) 4/28/95";
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/wait.h>
+
#include <ufs/ufs/dinode.h>
+
+#include <ctype.h>
#include <fstab.h>
#include <string.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <ctype.h>
#include "fsck.h"
@@ -124,8 +123,7 @@ checkfstab(preen, maxrun, docheck, chkit)
maxrun = ndisks;
nextdisk = disks;
for (passno = 0; passno < maxrun; ++passno) {
- while ((ret = startdisk(nextdisk, chkit)) != 0 &&
- nrun > 0)
+ while ((ret = startdisk(nextdisk, chkit)) && nrun > 0)
sleep(10);
if (ret)
return (ret);
@@ -164,8 +162,8 @@ checkfstab(preen, maxrun, docheck, chkit)
if (nextdisk == NULL) {
if (dk->part) {
- while ((ret = startdisk(dk, chkit)) != 0
- && nrun > 0)
+ while ((ret = startdisk(dk, chkit)) &&
+ nrun > 0)
sleep(10);
if (ret)
return (ret);
@@ -178,8 +176,8 @@ checkfstab(preen, maxrun, docheck, chkit)
nextdisk->pid == 0)
break;
}
- while ((ret = startdisk(nextdisk, chkit)) != 0
- && nrun > 0)
+ while ((ret = startdisk(nextdisk, chkit)) &&
+ nrun > 0)
sleep(10);
if (ret)
return (ret);
@@ -206,7 +204,7 @@ finddisk(name)
{
register struct disk *dk, **dkp;
register char *p;
- size_t len = 0;
+ size_t len;
for (len = strlen(name), p = name + len - 1; p >= name; --p)
if (isdigit(*p)) {