Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ufs Fix errors in !defined(QUOTA) && !defined(QUOTA2...



details:   https://anonhg.NetBSD.org/src/rev/9e4e7b10e592
branches:  trunk
changeset: 773218:9e4e7b10e592
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jan 29 08:49:01 2012 +0000

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

diffstat:

 sys/ufs/ufs/ufs_vfsops.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 4a20e37366ab -r 9e4e7b10e592 sys/ufs/ufs/ufs_vfsops.c
--- a/sys/ufs/ufs/ufs_vfsops.c  Sun Jan 29 07:23:52 2012 +0000
+++ b/sys/ufs/ufs/ufs_vfsops.c  Sun Jan 29 08:49:01 2012 +0000
@@ -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 @@
 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). */



Home | Main Index | Thread Index | Old Index