summaryrefslogtreecommitdiffstats
path: root/sys/netatm/atm_if.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-27 22:42:27 +0000
committerdillon <dillon@FreeBSD.org>1999-01-27 22:42:27 +0000
commitdbf5cd2b57217eb6c73488177fc6a096ead934b6 (patch)
tree1de192fde2322188e529943e6982359b783fd78e /sys/netatm/atm_if.c
parent5a53b379176ab48879944fa794655a1cbc840630 (diff)
downloadFreeBSD-src-dbf5cd2b57217eb6c73488177fc6a096ead934b6.zip
FreeBSD-src-dbf5cd2b57217eb6c73488177fc6a096ead934b6.tar.gz
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/netatm/atm_if.c')
-rw-r--r--sys/netatm/atm_if.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/netatm/atm_if.c b/sys/netatm/atm_if.c
index a360955..b4f9ce6 100644
--- a/sys/netatm/atm_if.c
+++ b/sys/netatm/atm_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: atm_if.c,v 1.2 1998/10/31 20:06:54 phk Exp $
+ * @(#) $Id: atm_if.c,v 1.3 1998/12/04 22:54:52 archie Exp $
*
*/
@@ -38,7 +38,7 @@
#include <netatm/kern_include.h>
#ifndef lint
-__RCSID("@(#) $Id: atm_if.c,v 1.2 1998/10/31 20:06:54 phk Exp $");
+__RCSID("@(#) $Id: atm_if.c,v 1.3 1998/12/04 22:54:52 archie Exp $");
#endif
@@ -428,14 +428,14 @@ atm_physif_ioctl(code, data, arg)
/*
* Copy interface name into response
*/
- if ( err = copyout ( ifname, apsp->app_intf, IFNAMSIZ ) )
+ if ((err = copyout ( ifname, apsp->app_intf, IFNAMSIZ)) != 0)
break;
/*
* Copy counters
*/
- if ( err = copyout ( &pip->pif_ipdus, &apsp->app_ipdus,
- len - sizeof ( apsp->app_intf ) ) )
+ if ((err = copyout(&pip->pif_ipdus, &apsp->app_ipdus,
+ len - sizeof(apsp->app_intf))) != 0)
break;
/*
@@ -524,8 +524,7 @@ atm_physif_ioctl(code, data, arg)
}
#endif
- if ( err = atm_nif_attach ( nip ) )
- {
+ if ((err = atm_nif_attach(nip)) != 0) {
atm_free ( (caddr_t)nip );
/*
OpenPOWER on IntegriCloud