Module Name: src Committed By: matt Date: Sat Feb 18 06:13:23 UTC 2012
Modified Files: src/sys/ufs/ufs: ufs_quota.c ufs_quota.h Log Message: Eliminate a common in a header file (add a missing extern) and declare it in the approriate C file. To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109 src/sys/ufs/ufs/ufs_quota.c cvs rdiff -u -r1.20 -r1.21 src/sys/ufs/ufs/ufs_quota.h 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_quota.c diff -u src/sys/ufs/ufs/ufs_quota.c:1.108 src/sys/ufs/ufs/ufs_quota.c:1.109 --- src/sys/ufs/ufs/ufs_quota.c:1.108 Wed Feb 1 05:43:54 2012 +++ src/sys/ufs/ufs/ufs_quota.c Sat Feb 18 06:13:23 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_quota.c,v 1.108 2012/02/01 05:43:54 dholland Exp $ */ +/* $NetBSD: ufs_quota.c,v 1.109 2012/02/18 06:13:23 matt Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993, 1995 @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.108 2012/02/01 05:43:54 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.109 2012/02/18 06:13:23 matt Exp $"); #if defined(_KERNEL_OPT) #include "opt_quota.h" @@ -59,6 +59,7 @@ __KERNEL_RCSID(0, "$NetBSD: ufs_quota.c, kmutex_t dqlock; kcondvar_t dqcv; +const char *quotatypes[MAXQUOTAS]; /* * Code pertaining to management of the in-core dquot data structures. Index: src/sys/ufs/ufs/ufs_quota.h diff -u src/sys/ufs/ufs/ufs_quota.h:1.20 src/sys/ufs/ufs/ufs_quota.h:1.21 --- src/sys/ufs/ufs/ufs_quota.h:1.20 Sun Jan 29 07:09:52 2012 +++ src/sys/ufs/ufs/ufs_quota.h Sat Feb 18 06:13:23 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_quota.h,v 1.20 2012/01/29 07:09:52 dholland Exp $ */ +/* $NetBSD: ufs_quota.h,v 1.21 2012/02/18 06:13:23 matt Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993, 1995 @@ -103,7 +103,7 @@ extern kcondvar_t dqcv; /* * Quota name to error message mapping. */ -const char *quotatypes[MAXQUOTAS]; +extern const char *quotatypes[MAXQUOTAS]; int getinoquota(struct inode *); int dqget(struct vnode *, u_long, struct ufsmount *, int, struct dquot **);