summaryrefslogtreecommitdiffstats
path: root/sys/netatm/ipatm
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/ipatm
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/ipatm')
-rw-r--r--sys/netatm/ipatm/ipatm_load.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netatm/ipatm/ipatm_load.c b/sys/netatm/ipatm/ipatm_load.c
index 3825415..f82d984 100644
--- a/sys/netatm/ipatm/ipatm_load.c
+++ b/sys/netatm/ipatm/ipatm_load.c
@@ -23,7 +23,7 @@
* Copies of this Software may be made, however, the above copyright
* notice must be reproduced on all copies.
*
- * @(#) $Id: ipatm_load.c,v 1.1 1998/09/15 08:23:00 phk Exp $
+ * @(#) $Id: ipatm_load.c,v 1.2 1998/10/31 20:06:55 phk Exp $
*
*/
@@ -46,7 +46,7 @@
#include <netatm/ipatm/ipatm_serv.h>
#ifndef lint
-__RCSID("@(#) $Id: ipatm_load.c,v 1.1 1998/09/15 08:23:00 phk Exp $");
+__RCSID("@(#) $Id: ipatm_load.c,v 1.2 1998/10/31 20:06:55 phk Exp $");
#endif
@@ -501,9 +501,9 @@ ipatm_start()
/*
* Now start listening
*/
- if (err = atm_cm_listen(&ipatm_endpt, (void *)i,
+ if ((err = atm_cm_listen(&ipatm_endpt, (void *)i,
&ipatm_listeners[i].attr,
- &ipatm_listeners[i].conn))
+ &ipatm_listeners[i].conn)) != 0)
goto done;
}
@@ -569,7 +569,7 @@ ipatm_stop()
/*
* Detach all our interfaces
*/
- while (inp = ipatm_nif_head) {
+ while ((inp = ipatm_nif_head) != NULL) {
(void) ipatm_nifstat(NCM_DETACH, inp->inf_nif, 0);
}
OpenPOWER on IntegriCloud