diff options
author | des <des@FreeBSD.org> | 2008-07-02 15:51:59 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-07-02 15:51:59 +0000 |
commit | 34dee8955f391d91a8b5086854e45c2180ed3717 (patch) | |
tree | c88748d4f89996f5936c4807089d632cd5f2286a /usr.sbin/quotaon/quotaon.c | |
parent | 2af52bdb8e74ce2b6e8b81230d001b2cdcbe2e10 (diff) | |
download | FreeBSD-src-34dee8955f391d91a8b5086854e45c2180ed3717.zip FreeBSD-src-34dee8955f391d91a8b5086854e45c2180ed3717.tar.gz |
Drag this code kicking and screaming into the twenty-first century.
Diffstat (limited to 'usr.sbin/quotaon/quotaon.c')
-rw-r--r-- | usr.sbin/quotaon/quotaon.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c index 03df4e2..314f596 100644 --- a/usr.sbin/quotaon/quotaon.c +++ b/usr.sbin/quotaon/quotaon.c @@ -75,7 +75,7 @@ static void usage(void); int main(int argc, char **argv) { - register struct fstab *fs; + struct fstab *fs; char *qfnp, *whoami; long argnum, done = 0; int ch, i, offmode = 0, errs = 0; @@ -142,7 +142,7 @@ main(int argc, char **argv) } static void -usage() +usage(void) { fprintf(stderr, "%s\n%s\n%s\n%s\n", @@ -186,11 +186,9 @@ quotaonoff(fs, offmode, type, qfpathname) * Check to see if target appears in list of size cnt. */ int -oneof(target, list, cnt) - register char *target, *list[]; - int cnt; +oneof(char *target, char *list[], int cnt) { - register int i; + int i; for (i = 0; i < cnt; i++) if (strcmp(target, list[i]) == 0) @@ -202,10 +200,7 @@ oneof(target, list, cnt) * Check to see if a particular quota is to be enabled. */ int -hasquota(fs, type, qfnamep) - struct fstab *fs; - int type; - char **qfnamep; +hasquota(struct fstab *fs, int type, char **qfnamep) { char *opt; char *cp; @@ -254,8 +249,7 @@ hasquota(fs, type, qfnamep) * Verify filesystem is mounted and not readonly. */ int -readonly(fs) - register struct fstab *fs; +readonly(struct fstab *fs) { struct statfs fsbuf; |