[Midnightbsd-cvs] src [10352] trunk/usr.sbin/repquota/repquota.c: sync with freebsd

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Jun 3 18:56:23 EDT 2018


Revision: 10352
          http://svnweb.midnightbsd.org/src/?rev=10352
Author:   laffer1
Date:     2018-06-03 18:56:22 -0400 (Sun, 03 Jun 2018)
Log Message:
-----------
sync with freebsd

Modified Paths:
--------------
    trunk/usr.sbin/repquota/repquota.c

Modified: trunk/usr.sbin/repquota/repquota.c
===================================================================
--- trunk/usr.sbin/repquota/repquota.c	2018-06-03 22:55:14 UTC (rev 10351)
+++ trunk/usr.sbin/repquota/repquota.c	2018-06-03 22:56:22 UTC (rev 10352)
@@ -79,8 +79,7 @@
 
 #define max(a,b) ((a) >= (b) ? (a) : (b))
 
-const char *qfname = QUOTAFILENAME;
-const char *qfextension[] = INITQFNAMES;
+static const char *qfextension[] = INITQFNAMES;
 
 struct fileusage {
 	struct	fileusage *fu_next;
@@ -89,15 +88,15 @@
 	/* actually bigger */
 };
 #define FUHASH 1024	/* must be power of two */
-struct fileusage *fuhead[MAXQUOTAS][FUHASH];
-struct fileusage *lookup(u_long, int);
-struct fileusage *addid(u_long, int, char *);
-u_long highid[MAXQUOTAS];	/* highest addid()'ed identifier per type */
+static struct fileusage *fuhead[MAXQUOTAS][FUHASH];
+static struct fileusage *lookup(u_long, int);
+static struct fileusage *addid(u_long, int, char *);
+static u_long highid[MAXQUOTAS]; /* highest addid()'ed identifier per type */
 
-int	vflag;			/* verbose */
-int	aflag;			/* all filesystems */
-int	nflag;			/* display user/group by id */
-int	hflag;			/* display in human readable format */
+static int	vflag;		/* verbose */
+static int	aflag;		/* all filesystems */
+static int	nflag;		/* display user/group by id */
+static int	hflag;		/* display in human readable format */
 
 int oneof(char *, char *[], int);
 int repquota(struct fstab *, int);



More information about the Midnightbsd-cvs mailing list