diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-27 20:09:21 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-27 20:09:21 +0000 |
commit | 0775a53cddb430a21259a269e0a7063ec0a1ee17 (patch) | |
tree | cb68685742f9729aa9c70ebcdc86355253673b77 /sys/dev/hfa | |
parent | 5c8fc4f2c43c35ac665320db4c7ab03e6193d120 (diff) | |
download | FreeBSD-src-0775a53cddb430a21259a269e0a7063ec0a1ee17.zip FreeBSD-src-0775a53cddb430a21259a269e0a7063ec0a1ee17.tar.gz |
Fix warnings preparing for -Wall -Wcast-qual
Also disable one usb module in LINT due to fatal compilation errors,
temporary.
Diffstat (limited to 'sys/dev/hfa')
-rw-r--r-- | sys/dev/hfa/fore_buffer.c | 10 | ||||
-rw-r--r-- | sys/dev/hfa/fore_command.c | 6 | ||||
-rw-r--r-- | sys/dev/hfa/fore_if.c | 10 | ||||
-rw-r--r-- | sys/dev/hfa/fore_output.c | 6 | ||||
-rw-r--r-- | sys/dev/hfa/fore_receive.c | 6 | ||||
-rw-r--r-- | sys/dev/hfa/fore_transmit.c | 6 |
6 files changed, 22 insertions, 22 deletions
diff --git a/sys/dev/hfa/fore_buffer.c b/sys/dev/hfa/fore_buffer.c index 6952f01..ccf91b3 100644 --- a/sys/dev/hfa/fore_buffer.c +++ b/sys/dev/hfa/fore_buffer.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: fore_buffer.c,v 1.1 1998/09/15 08:22:54 phk Exp $ + * @(#) $Id: fore_buffer.c,v 1.2 1998/10/31 20:06:52 phk Exp $ * */ @@ -38,7 +38,7 @@ #include <dev/hfa/fore_include.h> #ifndef lint -__RCSID("@(#) $Id: fore_buffer.c,v 1.1 1998/09/15 08:22:54 phk Exp $"); +__RCSID("@(#) $Id: fore_buffer.c,v 1.2 1998/10/31 20:06:52 phk Exp $"); #endif @@ -690,7 +690,7 @@ fore_buf_free(fup) /* * Run through Strategy 1 Small queue */ - while (bhp = Q_HEAD(fup->fu_buf1s_bq, Buf_handle)) { + while ((bhp = Q_HEAD(fup->fu_buf1s_bq, Buf_handle)) != NULL) { caddr_t cp; /* @@ -712,7 +712,7 @@ fore_buf_free(fup) /* * Run through Strategy 1 Large queue */ - while (bhp = Q_HEAD(fup->fu_buf1l_bq, Buf_handle)) { + while ((bhp = Q_HEAD(fup->fu_buf1l_bq, Buf_handle)) != NULL) { caddr_t cp; /* @@ -742,7 +742,7 @@ fore_buf_free(fup) (BUF1_SM_QUELEN + BUF1_LG_QUELEN), ATM_DEV_NONCACHE); } - atm_dev_free((void *)fup->fu_buf1s_stat); + atm_dev_free((volatile void *)fup->fu_buf1s_stat); fup->fu_buf1s_stat = NULL; fup->fu_buf1s_statd = NULL; fup->fu_buf1l_stat = NULL; diff --git a/sys/dev/hfa/fore_command.c b/sys/dev/hfa/fore_command.c index d8e0e9d..bb4187f 100644 --- a/sys/dev/hfa/fore_command.c +++ b/sys/dev/hfa/fore_command.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: fore_command.c,v 1.3 1998/10/31 20:06:52 phk Exp $ + * @(#) $Id: fore_command.c,v 1.4 1998/12/04 22:54:45 archie Exp $ * */ @@ -38,7 +38,7 @@ #include <dev/hfa/fore_include.h> #ifndef lint -__RCSID("@(#) $Id: fore_command.c,v 1.3 1998/10/31 20:06:52 phk Exp $"); +__RCSID("@(#) $Id: fore_command.c,v 1.4 1998/12/04 22:54:45 archie Exp $"); #endif /* @@ -437,7 +437,7 @@ fore_cmd_free(fup) sizeof(Q_status) * CMD_QUELEN, ATM_DEV_NONCACHE); } - atm_dev_free((void *)fup->fu_cmd_stat); + atm_dev_free((volatile void *)fup->fu_cmd_stat); fup->fu_cmd_stat = NULL; fup->fu_cmd_statd = NULL; } diff --git a/sys/dev/hfa/fore_if.c b/sys/dev/hfa/fore_if.c index 479e7e6..2c4a9de 100644 --- a/sys/dev/hfa/fore_if.c +++ b/sys/dev/hfa/fore_if.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: fore_if.c,v 1.2 1998/10/31 20:06:52 phk Exp $ + * @(#) $Id: fore_if.c,v 1.3 1998/12/04 22:54:45 archie Exp $ * */ @@ -38,7 +38,7 @@ #include <dev/hfa/fore_include.h> #ifndef lint -__RCSID("@(#) $Id: fore_if.c,v 1.2 1998/10/31 20:06:52 phk Exp $"); +__RCSID("@(#) $Id: fore_if.c,v 1.3 1998/12/04 22:54:45 archie Exp $"); #endif @@ -107,7 +107,7 @@ fore_atm_ioctl(code, data, arg) /* * Copy interface name into response structure */ - if ( err = copyout ( ifname, avr->avsp_intf, IFNAMSIZ ) ) + if ((err = copyout ( ifname, avr->avsp_intf, IFNAMSIZ)) != 0) break; /* @@ -132,7 +132,7 @@ fore_atm_ioctl(code, data, arg) * Copy stats into user's buffer. Return value is * amount of data copied. */ - if (err = copyout((caddr_t)fup->fu_stats, buf, count)) + if ((err = copyout((caddr_t)fup->fu_stats, buf, count)) != 0) break; buf += count; buf_len -= count; @@ -143,7 +143,7 @@ fore_atm_ioctl(code, data, arg) /* * Record amount we're returning as vendor info... */ - if (err = copyout(&count, &avr->avsp_len, sizeof(int))) + if ((err = copyout(&count, &avr->avsp_len, sizeof(int))) != 0) break; /* diff --git a/sys/dev/hfa/fore_output.c b/sys/dev/hfa/fore_output.c index d92d5a0..0a5bcd2 100644 --- a/sys/dev/hfa/fore_output.c +++ b/sys/dev/hfa/fore_output.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: fore_output.c,v 1.1 1998/09/15 08:22:55 phk Exp $ + * @(#) $Id: fore_output.c,v 1.2 1998/10/31 20:06:53 phk Exp $ * */ @@ -38,7 +38,7 @@ #include <dev/hfa/fore_include.h> #ifndef lint -__RCSID("@(#) $Id: fore_output.c,v 1.1 1998/09/15 08:22:55 phk Exp $"); +__RCSID("@(#) $Id: fore_output.c,v 1.2 1998/10/31 20:06:53 phk Exp $"); #endif @@ -301,7 +301,7 @@ retry: * Get start of data onto full-word alignment */ KB_DATASTART(m, cp, caddr_t); - if (align = ((u_int)cp) & (XMIT_SEG_ALIGN - 1)) { + if ((align = ((u_int)cp) & (XMIT_SEG_ALIGN - 1)) != 0) { /* * Gotta slide the data up */ diff --git a/sys/dev/hfa/fore_receive.c b/sys/dev/hfa/fore_receive.c index 431a03f..a86545c 100644 --- a/sys/dev/hfa/fore_receive.c +++ b/sys/dev/hfa/fore_receive.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: fore_receive.c,v 1.2 1998/09/17 09:34:59 phk Exp $ + * @(#) $Id: fore_receive.c,v 1.3 1998/10/31 20:06:53 phk Exp $ * */ @@ -38,7 +38,7 @@ #include <dev/hfa/fore_include.h> #ifndef lint -__RCSID("@(#) $Id: fore_receive.c,v 1.2 1998/09/17 09:34:59 phk Exp $"); +__RCSID("@(#) $Id: fore_receive.c,v 1.3 1998/10/31 20:06:53 phk Exp $"); #endif @@ -559,7 +559,7 @@ fore_recv_free(fup) sizeof(Q_status) * RECV_QUELEN, ATM_DEV_NONCACHE); } - atm_dev_free((void *)fup->fu_recv_stat); + atm_dev_free((volatile void *)fup->fu_recv_stat); fup->fu_recv_stat = NULL; fup->fu_recv_statd = NULL; } diff --git a/sys/dev/hfa/fore_transmit.c b/sys/dev/hfa/fore_transmit.c index bced06c..4be4a89 100644 --- a/sys/dev/hfa/fore_transmit.c +++ b/sys/dev/hfa/fore_transmit.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: fore_transmit.c,v 1.1 1998/09/15 08:22:56 phk Exp $ + * @(#) $Id: fore_transmit.c,v 1.2 1998/10/31 20:06:53 phk Exp $ * */ @@ -38,7 +38,7 @@ #include <dev/hfa/fore_include.h> #ifndef lint -__RCSID("@(#) $Id: fore_transmit.c,v 1.1 1998/09/15 08:22:56 phk Exp $"); +__RCSID("@(#) $Id: fore_transmit.c,v 1.2 1998/10/31 20:06:53 phk Exp $"); #endif @@ -340,7 +340,7 @@ fore_xmit_free(fup) sizeof(Q_status) * XMIT_QUELEN, ATM_DEV_NONCACHE); } - atm_dev_free((void *)fup->fu_xmit_stat); + atm_dev_free((volatile void *)fup->fu_xmit_stat); fup->fu_xmit_stat = NULL; fup->fu_xmit_statd = NULL; } |