Module Name:    src
Committed By:   tsutsui
Date:           Sun Jan 29 08:49:02 UTC 2012

Modified Files:
        src/sys/ufs/ufs: ufs_vfsops.c

Log Message:
Fix errors in !defined(QUOTA) && !defined(QUOTA2) case.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/ufs/ufs/ufs_vfsops.c

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

Modified files:

Index: src/sys/ufs/ufs/ufs_vfsops.c
diff -u src/sys/ufs/ufs/ufs_vfsops.c:1.48 src/sys/ufs/ufs/ufs_vfsops.c:1.49
--- src/sys/ufs/ufs/ufs_vfsops.c:1.48	Sun Jan 29 07:16:54 2012
+++ src/sys/ufs/ufs/ufs_vfsops.c	Sun Jan 29 08:49:01 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ufs_vfsops.c,v 1.48 2012/01/29 07:16:54 dholland Exp $	*/
+/*	$NetBSD: ufs_vfsops.c,v 1.49 2012/01/29 08:49:01 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993, 1994
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_vfsops.c,v 1.48 2012/01/29 07:16:54 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_vfsops.c,v 1.49 2012/01/29 08:49:01 tsutsui Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -102,15 +102,13 @@ ufs_root(struct mount *mp, struct vnode 
 int
 ufs_quotactl(struct mount *mp, struct vfs_quotactl_args *args)
 {
-	struct lwp *l = curlwp;
 
 #if !defined(QUOTA) && !defined(QUOTA2)
 	(void) mp;
-	(void) cmddict;
-	(void) dummy;
-	(void) l;
+	(void) args;
 	return (EOPNOTSUPP);
 #else
+	struct lwp *l = curlwp;
 	int error;
 
 	/* Mark the mount busy, as we're passing it to kauth(9). */

Reply via email to