diff options
author | markm <markm@FreeBSD.org> | 2003-04-30 12:57:40 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2003-04-30 12:57:40 +0000 |
commit | 6cc289554b8533c3a4ccee449df82dd25964011a (patch) | |
tree | 78f25ba6828418e0a4c21039c67b86f39bb61181 /sys/ufs | |
parent | bc54a1bc8ba917055c728fd55e152d1aede2174c (diff) | |
download | FreeBSD-src-6cc289554b8533c3a4ccee449df82dd25964011a.zip FreeBSD-src-6cc289554b8533c3a4ccee449df82dd25964011a.tar.gz |
Fix some easy, global, lint warnings. In most cases, this means
making some local variables static. In a couple of cases, this means
removing an unused variable.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 2 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_lookup.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index afae8e8..0be25d5 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -104,7 +104,7 @@ int dopersistence = 0; #ifdef DEBUG #include <sys/sysctl.h> SYSCTL_INT(_debug, OID_AUTO, dopersistence, CTLFLAG_RW, &dopersistence, 0, ""); -int snapdebug = 0; +static int snapdebug = 0; SYSCTL_INT(_debug, OID_AUTO, snapdebug, CTLFLAG_RW, &snapdebug, 0, ""); int collectsnapstats = 0; SYSCTL_INT(_debug, OID_AUTO, collectsnapstats, CTLFLAG_RW, &collectsnapstats, diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index f5c9a85..717c840 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -68,9 +68,9 @@ #include <ufs/ufs/ufs_extern.h> #ifdef DIAGNOSTIC -int dirchk = 1; +static int dirchk = 1; #else -int dirchk = 0; +static int dirchk = 0; #endif SYSCTL_INT(_debug, OID_AUTO, dircheck, CTLFLAG_RW, &dirchk, 0, ""); |