aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck/preen.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2008-07-02 15:51:59 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2008-07-02 15:51:59 +0000
commit8f518424d9f206af15dc929efadd0a46abe7ee5a (patch)
treec88748d4f89996f5936c4807089d632cd5f2286a /sbin/quotacheck/preen.c
parentc06cddfef855427089115c79081cd6a85b4350fd (diff)
downloadsrc-8f518424d9f206af15dc929efadd0a46abe7ee5a.tar.gz
src-8f518424d9f206af15dc929efadd0a46abe7ee5a.zip
Drag this code kicking and screaming into the twenty-first century.
Notes
Notes: svn path=/head/; revision=180187
Diffstat (limited to 'sbin/quotacheck/preen.c')
-rw-r--r--sbin/quotacheck/preen.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/quotacheck/preen.c b/sbin/quotacheck/preen.c
index adf23219acd9..a6c4169ee55e 100644
--- a/sbin/quotacheck/preen.c
+++ b/sbin/quotacheck/preen.c
@@ -57,17 +57,17 @@ __RCSID("$NetBSD: preen.c,v 1.18 1998/07/26 20:02:36 mycroft Exp $");
struct partentry {
TAILQ_ENTRY(partentry) p_entries;
- char *p_devname; /* device name */
+ char *p_devname; /* device name */
char *p_mntpt; /* mount point */
- char *p_type; /* file system type */
+ char *p_type; /* file system type */
struct quotaname *p_quota; /* quota file info ptr */
};
TAILQ_HEAD(part, partentry) badh;
struct diskentry {
- TAILQ_ENTRY(diskentry) d_entries;
- char *d_name; /* disk base name */
+ TAILQ_ENTRY(diskentry) d_entries;
+ char *d_name; /* disk base name */
TAILQ_HEAD(prt, partentry) d_part; /* list of partitions on disk */
int d_pid; /* 0 or pid of fsck proc */
};
@@ -82,7 +82,7 @@ extern void *emalloc(size_t);
extern char *estrdup(const char *);
int
-checkfstab()
+checkfstab(void)
{
struct fstab *fs;
struct diskentry *d, *nextdisk;
@@ -120,7 +120,7 @@ checkfstab()
if (sumstatus)
return (sumstatus);
continue;
- }
+ }
if (name == NULL) {
(void) fprintf(stderr,
"BAD DISK NAME %s\n", fs->fs_spec);
@@ -139,7 +139,7 @@ checkfstab()
}
while ((pid = wait(&status)) != -1) {
- TAILQ_FOREACH(d, &diskh, d_entries)
+ TAILQ_FOREACH(d, &diskh, d_entries)
if (d->d_pid == pid)
break;
@@ -226,7 +226,7 @@ finddisk(const char *name)
if (len == 0)
len = strlen(name);
- TAILQ_FOREACH(d, &diskh, d_entries)
+ TAILQ_FOREACH(d, &diskh, d_entries)
if (strncmp(d->d_name, name, len) == 0 && d->d_name[len] == 0)
return d;