Deleted Added
full compact
quotaon.c (114601) quotaon.c (124830)
1/*
2 * Copyright (c) 1980, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Robert Elz at The University of Melbourne.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 32 unchanged lines hidden (view full) ---

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45static char sccsid[] = "@(#)quotaon.c 8.1 (Berkeley) 6/6/93";
46#endif /* not lint */
47#endif
48#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1980, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Robert Elz at The University of Melbourne.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 32 unchanged lines hidden (view full) ---

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45static char sccsid[] = "@(#)quotaon.c 8.1 (Berkeley) 6/6/93";
46#endif /* not lint */
47#endif
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/usr.sbin/quotaon/quotaon.c 114601 2003-05-03 21:06:42Z obrien $");
49__FBSDID("$FreeBSD: head/usr.sbin/quotaon/quotaon.c 124830 2004-01-22 07:23:36Z grehan $");
50
51/*
52 * Turn quota on/off for a filesystem.
53 */
54#include <sys/param.h>
55#include <sys/file.h>
56#include <sys/mount.h>
57#include <ufs/ufs/quota.h>

--- 17 unchanged lines hidden (view full) ---

75int quotaonoff(struct fstab *fs, int, int, char *);
76int readonly(struct fstab *);
77static void usage(void);
78
79int
80main(int argc, char **argv)
81{
82 register struct fstab *fs;
50
51/*
52 * Turn quota on/off for a filesystem.
53 */
54#include <sys/param.h>
55#include <sys/file.h>
56#include <sys/mount.h>
57#include <ufs/ufs/quota.h>

--- 17 unchanged lines hidden (view full) ---

75int quotaonoff(struct fstab *fs, int, int, char *);
76int readonly(struct fstab *);
77static void usage(void);
78
79int
80main(int argc, char **argv)
81{
82 register struct fstab *fs;
83 char ch, *qfnp, *whoami;
83 char *qfnp, *whoami;
84 long argnum, done = 0;
84 long argnum, done = 0;
85 int i, offmode = 0, errs = 0;
85 int ch, i, offmode = 0, errs = 0;
86
87 whoami = rindex(*argv, '/') + 1;
88 if (whoami == (char *)1)
89 whoami = *argv;
90 if (strcmp(whoami, "quotaoff") == 0)
91 offmode++;
92 else if (strcmp(whoami, "quotaon") != 0)
93 errx(1, "name must be quotaon or quotaoff");

--- 171 unchanged lines hidden ---
86
87 whoami = rindex(*argv, '/') + 1;
88 if (whoami == (char *)1)
89 whoami = *argv;
90 if (strcmp(whoami, "quotaoff") == 0)
91 offmode++;
92 else if (strcmp(whoami, "quotaon") != 0)
93 errx(1, "name must be quotaon or quotaoff");

--- 171 unchanged lines hidden ---