diff options
Diffstat (limited to 'usr.sbin/quotaon/quotaon.c')
-rw-r--r-- | usr.sbin/quotaon/quotaon.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c index 8d52983..740df39 100644 --- a/usr.sbin/quotaon/quotaon.c +++ b/usr.sbin/quotaon/quotaon.c @@ -59,16 +59,15 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include <unistd.h> -const char *qfname = QUOTAFILENAME; -const char *qfextension[] = INITQFNAMES; +static const char *qfextension[] = INITQFNAMES; -int aflag; /* all filesystems */ -int gflag; /* operate on group quotas */ -int uflag; /* operate on user quotas */ -int vflag; /* verbose */ +static int aflag; /* all filesystems */ +static int gflag; /* operate on group quotas */ +static int uflag; /* operate on user quotas */ +static int vflag; /* verbose */ -int oneof(char *, char *[], int); -int quotaonoff(struct fstab *fs, int, int); +static int oneof(char *, char *[], int); +static int quotaonoff(struct fstab *fs, int, int); static void usage(void); int @@ -150,7 +149,7 @@ usage(void) exit(1); } -int +static int quotaonoff(struct fstab *fs, int offmode, int type) { struct quotafile *qf; @@ -181,7 +180,7 @@ quotaonoff(struct fstab *fs, int offmode, int type) /* * Check to see if target appears in list of size cnt. */ -int +static int oneof(char *target, char *list[], int cnt) { int i; |