From a0938eeb797fa654fdcb29b3e11edcadc845e85c Mon Sep 17 00:00:00 2001 From: dillon Date: Wed, 27 Jan 1999 22:16:15 +0000 Subject: Fix warnings in preparation for adding -Wall -Wcast-qual to the kernel compile --- sys/netatm/atm_cm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/netatm/atm_cm.c') diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c index 6ae42e8..51ea35b 100644 --- a/sys/netatm/atm_cm.c +++ b/sys/netatm/atm_cm.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_cm.c,v 1.2 1998/09/17 09:34:59 phk Exp $ + * @(#) $Id: atm_cm.c,v 1.3 1998/10/31 20:06:54 phk Exp $ * */ @@ -38,7 +38,7 @@ #include #ifndef lint -__RCSID("@(#) $Id: atm_cm.c,v 1.2 1998/09/17 09:34:59 phk Exp $"); +__RCSID("@(#) $Id: atm_cm.c,v 1.3 1998/10/31 20:06:54 phk Exp $"); #endif @@ -996,7 +996,7 @@ atm_cm_release(cop, cause) /* * Check out the VCC state too */ - if (cvp = cop->co_connvc) { + if ((cvp = cop->co_connvc) != NULL) { switch (cvp->cvc_state) { @@ -1404,7 +1404,7 @@ atm_cm_connected(cvp) /* * Input any queued packets */ - while (m = cvp->cvc_rcvq) { + while ((m = cvp->cvc_rcvq) != NULL) { cvp->cvc_rcvq = KB_QNEXT(m); cvp->cvc_rcvqlen--; KB_QNEXT(m) = NULL; @@ -1562,7 +1562,7 @@ atm_cm_incall(cvp) /* * Look for matching listeners */ - while (lcop = atm_cm_match(&attr, lcop)) { + while ((lcop = atm_cm_match(&attr, lcop)) != NULL) { if (cop == NULL) { /* -- cgit v1.1