summaryrefslogtreecommitdiffstats
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-03-14 01:32:44 +0000
committerrwatson <rwatson@FreeBSD.org>2004-03-14 01:32:44 +0000
commit066f7934c61f7a02e91c3b9ce60a2985e9a4c11a (patch)
tree11c097b8412216a358b6ac14353646ebba7dba31 /sys/net/if_spppsubr.c
parent1ff837cfce7fe0bff2e61961547cb15b17a41b69 (diff)
downloadFreeBSD-src-066f7934c61f7a02e91c3b9ce60a2985e9a4c11a.zip
FreeBSD-src-066f7934c61f7a02e91c3b9ce60a2985e9a4c11a.tar.gz
Compare spppq to NULL instead of using spppq as a boolean.
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 84d8843..776bbdd 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -961,7 +961,7 @@ sppp_attach(struct ifnet *ifp)
struct sppp *sp = (struct sppp*) ifp;
/* Initialize keepalive handler. */
- if (! spppq)
+ if (spppq != NULL)
TIMEOUT(sppp_keepalive, 0, hz * 10, keepalive_ch);
/* Insert new entry into the keepalive list. */
@@ -1020,7 +1020,7 @@ sppp_detach(struct ifnet *ifp)
}
/* Stop keepalive handler. */
- if (! spppq)
+ if (spppq != NULL)
UNTIMEOUT(sppp_keepalive, 0, keepalive_ch);
for (i = 0; i < IDX_COUNT; i++)
OpenPOWER on IntegriCloud