summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-02-09 06:11:36 +0000
committereivind <eivind@FreeBSD.org>1998-02-09 06:11:36 +0000
commitd7a6ab28035779065026b70dca440892d819c0bc (patch)
tree930fd4603b42a095e9f3669517dea29274323575 /sys/msdosfs
parent4538098d0b3fbe09f64c578b730483a6e77ff40f (diff)
downloadFreeBSD-src-d7a6ab28035779065026b70dca440892d819c0bc.zip
FreeBSD-src-d7a6ab28035779065026b70dca440892d819c0bc.tar.gz
Staticize.
Diffstat (limited to 'sys/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_conv.c14
-rw-r--r--sys/msdosfs/msdosfs_denode.c6
-rw-r--r--sys/msdosfs/msdosfs_fat.c12
3 files changed, 16 insertions, 16 deletions
diff --git a/sys/msdosfs/msdosfs_conv.c b/sys/msdosfs/msdosfs_conv.c
index e35f52b..59f4d2c 100644
--- a/sys/msdosfs/msdosfs_conv.c
+++ b/sys/msdosfs/msdosfs_conv.c
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id: msdosfs_conv.c,v 1.13 1997/02/22 09:40:46 peter Exp $ */
/* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */
/*
@@ -51,10 +51,10 @@ static u_short leapyear[] = {
* Variables used to remember parts of the last time conversion. Maybe we
* can avoid a full conversion.
*/
-u_long lasttime;
-u_long lastday;
-u_short lastddate;
-u_short lastdtime;
+static u_long lasttime;
+static u_long lastday;
+static u_short lastddate;
+static u_short lastdtime;
/*
* Convert the unix version of time to dos's idea of time to be used in
@@ -127,8 +127,8 @@ unix2dostime(tsp, ddp, dtp)
*/
#define SECONDSTO1980 (((8 * 365) + (2 * 366)) * (24 * 60 * 60))
-u_short lastdosdate;
-u_long lastseconds;
+static u_short lastdosdate;
+static u_long lastseconds;
/*
* Convert from dos' idea of time to unix'. This will probably only be
diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c
index 4b961f5..81e0699 100644
--- a/sys/msdosfs/msdosfs_denode.c
+++ b/sys/msdosfs/msdosfs_denode.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_denode.c,v 1.29 1998/02/04 22:33:00 eivind Exp $ */
+/* $Id: msdosfs_denode.c,v 1.30 1998/02/06 12:13:46 eivind Exp $ */
/* $NetBSD: msdosfs_denode.c,v 1.9 1994/08/21 18:44:00 ws Exp $ */
/*-
@@ -68,8 +68,8 @@
static MALLOC_DEFINE(M_MSDOSFSNODE, "MSDOSFS node", "MSDOSFS vnode private part");
-struct denode **dehashtbl;
-u_long dehash; /* size of hash table - 1 */
+static struct denode **dehashtbl;
+static u_long dehash; /* size of hash table - 1 */
#define DEHASH(dev, deno) (dehashtbl[((dev) + (deno)) & dehash])
static struct simplelock dehash_slock;
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index f3c2f5f..bb25ec2 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_fat.c,v 1.14 1998/02/04 22:33:00 eivind Exp $ */
+/* $Id: msdosfs_fat.c,v 1.15 1998/02/06 12:13:46 eivind Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.12 1994/08/21 18:44:04 ws Exp $ */
/*-
@@ -69,15 +69,15 @@
/*
* Fat cache stats.
*/
-int fc_fileextends; /* # of file extends */
-int fc_lfcempty; /* # of time last file cluster cache entry
+static int fc_fileextends; /* # of file extends */
+static int fc_lfcempty; /* # of time last file cluster cache entry
* was empty */
-int fc_bmapcalls; /* # of times pcbmap was called */
+static int fc_bmapcalls; /* # of times pcbmap was called */
#define LMMAX 20
-int fc_lmdistance[LMMAX]; /* counters for how far off the last
+static int fc_lmdistance[LMMAX];/* counters for how far off the last
* cluster mapped entry was. */
-int fc_largedistance; /* off by more than LMMAX */
+static int fc_largedistance; /* off by more than LMMAX */
/* Byte offset in FAT on filesystem pmp, cluster cn */
#define FATOFS(pmp, cn) (FAT12(pmp) ? (cn) * 3 / 2 : (cn) * 2)
OpenPOWER on IntegriCloud