summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quotaon
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-12 22:27:11 +0000
committerderaadt <deraadt@openbsd.org>2013-11-12 22:27:11 +0000
commitd2c628498841c9ac8784fce4f500adc0b8f7ca9d (patch)
tree15f50b7be9106db910bad82892c55a0413493186 /usr.sbin/quotaon
parentTrick the compiler that volatile temporary is used while raising (diff)
downloadwireguard-openbsd-d2c628498841c9ac8784fce4f500adc0b8f7ca9d.tar.xz
wireguard-openbsd-d2c628498841c9ac8784fce4f500adc0b8f7ca9d.zip
ensure there are prototypes
Diffstat (limited to 'usr.sbin/quotaon')
-rw-r--r--usr.sbin/quotaon/quotaon.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index cbfce7e737b..c906cdf636d 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -52,6 +52,14 @@ int gflag; /* operate on group quotas */
int uflag; /* operate on user quotas */
int vflag; /* verbose */
+void usage(char *whoami);
+int hasquota(struct fstab *fs, int type, char **qfnamep, int force);
+int quotaonoff(struct fstab *fs, int offmode, int type, char *qfpathname);
+int oneof(char *target, char *list[], int cnt);
+int readonly(struct fstab *fs);
+
+
+int
main(int argc, char *argv[])
{
struct fstab *fs;
@@ -133,6 +141,7 @@ main(int argc, char *argv[])
exit(errs);
}
+void
usage(char *whoami)
{