From cee77949ec96f76d4963696a85e63921271eaad9 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 25 May 1997 04:13:27 +0000 Subject: [PATCH] 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) --- sys/i386/isa/seagate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/i386/isa/seagate.c b/sys/i386/isa/seagate.c index 499a4d473c1..5d24bda535b 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; } /*