aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-05-25 04:13:27 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-05-25 04:13:27 +0000
commitcee77949ec96f76d4963696a85e63921271eaad9 (patch)
tree2f88249e005bbad0cdf80388dd5458dd8c743396
parent70117bbefdb23b0fa3d64bdbf6666c1331d15778 (diff)
downloadsrc-cee77949ec96f76d4963696a85e63921271eaad9.tar.gz
src-cee77949ec96f76d4963696a85e63921271eaad9.zip
Fix(?) two volatile cast warnings. The buffer is volatile within the
function so as to avoid compiler side effects, but functions calling it shouldn't be affected (gcc shouldn't cache memory scope past a function call)
Notes
Notes: svn path=/head/; revision=26110
-rw-r--r--sys/i386/isa/seagate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/seagate.c b/sys/i386/isa/seagate.c
index 499a4d473c1e..5d24bda535b9 100644
--- a/sys/i386/isa/seagate.c
+++ b/sys/i386/isa/seagate.c
@@ -60,7 +60,7 @@
* that category, with the possible exception of scanners and
* some of the older MO drives.
*
- * $Id: seagate.c,v 1.21 1997/03/23 04:39:51 bde Exp $
+ * $Id: seagate.c,v 1.22 1997/03/24 11:24:02 bde Exp $
*/
/*
@@ -1109,7 +1109,7 @@ void sea_data_output (adapter_t *z, u_char **pdata, u_long *plen)
#endif
PRINT (("sea (DATAOUT) send %ld bytes\n", *plen - len));
*plen = len;
- *pdata = data;
+ *pdata = (u_char *)data;
}
/*
@@ -1179,7 +1179,7 @@ void sea_data_input (adapter_t *z, u_char **pdata, u_long *plen)
#endif
PRINT (("sea (DATAIN) got %ld bytes\n", *plen - len));
*plen = len;
- *pdata = data;
+ *pdata = (u_char *)data;
}
/*