diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-03-14 01:32:44 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-03-14 01:32:44 +0000 |
commit | 066f7934c61f7a02e91c3b9ce60a2985e9a4c11a (patch) | |
tree | 11c097b8412216a358b6ac14353646ebba7dba31 /sys/net/if_spppsubr.c | |
parent | 1ff837cfce7fe0bff2e61961547cb15b17a41b69 (diff) | |
download | FreeBSD-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.c | 4 |
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++) |