summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-07-12 07:41:34 +0000
committerbde <bde@FreeBSD.org>1996-07-12 07:41:34 +0000
commitd449c2d3d46ca2da8e867aa5c8e007225f53106b (patch)
treed6b2d5948aaa45f4a334ee8a6e7433ff140b1777 /sys/dev/fdc
parentc2df7dfe258a5f9bc4d29e1a3ce9e930422cb17e (diff)
downloadFreeBSD-src-d449c2d3d46ca2da8e867aa5c8e007225f53106b.zip
FreeBSD-src-d449c2d3d46ca2da8e867aa5c8e007225f53106b.tar.gz
Staticized a few variables.
Fixed warnings about unused variables.
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index e5eafa2..9f37832 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.88 1996/05/03 14:57:21 phk Exp $
+ * $Id: fd.c,v 1.89 1996/05/03 20:15:11 phk Exp $
*
*/
@@ -310,7 +310,7 @@ static int fdformat(dev_t, struct fd_formb *, struct proc *);
#define IOTIMEDOUT 11
#ifdef DEBUG
-char *fdstates[] =
+static char const * const fdstates[] =
{
"DEVIDLE",
"FINDWORK",
@@ -327,7 +327,7 @@ char *fdstates[] =
};
/* CAUTION: fd_debug causes huge amounts of logging output */
-int fd_debug = 0;
+static int volatile fd_debug = 0;
#define TRACE0(arg) if(fd_debug) printf(arg)
#define TRACE1(arg1, arg2) if(fd_debug) printf(arg1, arg2)
#else /* DEBUG */
@@ -563,7 +563,10 @@ fdattach(struct isa_device *dev)
fdcu_t fdcu = dev->id_unit;
fdc_p fdc = fdc_data + fdcu;
fd_p fd;
- int fdsu, st0, st3, i, unithasfd;
+ int fdsu, st0, st3, i;
+#if NFT > 0
+ int unithasfd;
+#endif
struct isa_device *fdup;
int ic_type = 0;
#ifdef DEVFS
OpenPOWER on IntegriCloud