Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs Eliminate a common in a header file (add a missi...
details: https://anonhg.NetBSD.org/src/rev/d07f1c91a2bb
branches: trunk
changeset: 777420:d07f1c91a2bb
user: matt <matt%NetBSD.org@localhost>
date: Sat Feb 18 06:13:23 2012 +0000
description:
Eliminate a common in a header file (add a missing extern) and
declare it in the approriate C file.
diffstat:
sys/ufs/ufs/ufs_quota.c | 5 +++--
sys/ufs/ufs/ufs_quota.h | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 0542c060667f -r d07f1c91a2bb sys/ufs/ufs/ufs_quota.c
--- a/sys/ufs/ufs/ufs_quota.c Sat Feb 18 01:08:00 2012 +0000
+++ b/sys/ufs/ufs/ufs_quota.c Sat Feb 18 06:13:23 2012 +0000
@@ -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 @@
kmutex_t dqlock;
kcondvar_t dqcv;
+const char *quotatypes[MAXQUOTAS];
/*
* Code pertaining to management of the in-core dquot data structures.
diff -r 0542c060667f -r d07f1c91a2bb sys/ufs/ufs/ufs_quota.h
--- a/sys/ufs/ufs/ufs_quota.h Sat Feb 18 01:08:00 2012 +0000
+++ b/sys/ufs/ufs/ufs_quota.h Sat Feb 18 06:13:23 2012 +0000
@@ -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 @@
/*
* 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 **);
Home |
Main Index |
Thread Index |
Old Index