Module Name:    src
Committed By:   bouyer
Date:           Sat Jan 29 11:04:43 UTC 2011

Modified Files:
        src/usr.sbin/repquota [bouyer-quota2]: Makefile repquota.c

Log Message:
Use quota1_subr.c


To generate a diff of this commit:
cvs rdiff -u -r1.5.64.1 -r1.5.64.2 src/usr.sbin/repquota/Makefile
cvs rdiff -u -r1.25.2.1 -r1.25.2.2 src/usr.sbin/repquota/repquota.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/repquota/Makefile
diff -u src/usr.sbin/repquota/Makefile:1.5.64.1 src/usr.sbin/repquota/Makefile:1.5.64.2
--- src/usr.sbin/repquota/Makefile:1.5.64.1	Fri Jan 21 16:58:06 2011
+++ src/usr.sbin/repquota/Makefile	Sat Jan 29 11:04:43 2011
@@ -1,5 +1,5 @@
 #	from: @(#)Makefile	8.1 (Berkeley) 6/6/93
-#	$NetBSD: Makefile,v 1.5.64.1 2011/01/21 16:58:06 bouyer Exp $
+#	$NetBSD: Makefile,v 1.5.64.2 2011/01/29 11:04:43 bouyer Exp $
 
 .include <bsd.own.mk>
 PROG=	repquota
@@ -13,6 +13,6 @@
 .PATH:	${NETBSDSRCDIR}/usr.bin/quota
 SRCS+=	printquota.c
 .PATH:	${NETBSDSRCDIR}/sys/ufs/ufs 
-SRCS+=	quota2_prop.c
+SRCS+=	quota2_prop.c quota1_subr.c
 
 .include <bsd.prog.mk>

Index: src/usr.sbin/repquota/repquota.c
diff -u src/usr.sbin/repquota/repquota.c:1.25.2.1 src/usr.sbin/repquota/repquota.c:1.25.2.2
--- src/usr.sbin/repquota/repquota.c:1.25.2.1	Fri Jan 21 16:58:07 2011
+++ src/usr.sbin/repquota/repquota.c	Sat Jan 29 11:04:43 2011
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)repquota.c	8.2 (Berkeley) 11/22/94";
 #else
-__RCSID("$NetBSD: repquota.c,v 1.25.2.1 2011/01/21 16:58:07 bouyer Exp $");
+__RCSID("$NetBSD: repquota.c,v 1.25.2.2 2011/01/29 11:04:43 bouyer Exp $");
 #endif
 #endif /* not lint */
 
@@ -526,17 +526,3 @@
 	}
 	return (fup);
 }
-
-void
-dqblk2q2e(const struct dqblk *dqblk, struct quota2_entry *q2e)
-{ 
-	q2e->q2e_val[Q2V_BLOCK].q2v_hardlimit = dqblk->dqb_bhardlimit;  
-	q2e->q2e_val[Q2V_BLOCK].q2v_softlimit = dqblk->dqb_bsoftlimit; 
-	q2e->q2e_val[Q2V_BLOCK].q2v_cur       = dqblk->dqb_curblocks;
-	q2e->q2e_val[Q2V_BLOCK].q2v_time      = dqblk->dqb_btime;
-  
-	q2e->q2e_val[Q2V_FILE].q2v_hardlimit = dqblk->dqb_ihardlimit;
-	q2e->q2e_val[Q2V_FILE].q2v_softlimit = dqblk->dqb_isoftlimit;
-	q2e->q2e_val[Q2V_FILE].q2v_cur       = dqblk->dqb_curinodes;
-	q2e->q2e_val[Q2V_FILE].q2v_time      = dqblk->dqb_itime;
-} 

Reply via email to