From 18083e364f637c2cf34227f6fa0fde33a8787886 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 27 Mar 2008 13:21:12 +1100 Subject: [PATCH] Put #if 0 around unused function; add a few comments r2405 | dcl | 2008-03-27 13:21:12 +1100 (Thu, 27 Mar 2008) | 2 lines --- nwatch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nwatch.c b/nwatch.c index c9a3a83b..3203270e 100644 --- a/nwatch.c +++ b/nwatch.c @@ -251,6 +251,7 @@ static int NetWatchContextInsQue(pNetWatch self, pNWContext handle) return 1; } +#if 0 /* no longer used */ /** * \brief private function to remove entry from unsorted queue * @@ -279,6 +280,7 @@ static void NetWatchContextRemQue(pNetWatch self, pNWContext handle) handle->vrfy = 0; return; } +#endif /** * \brief private function to purge invalid entries @@ -344,8 +346,11 @@ int NetWatchRemoveCallback(pNWContext handle) return 0; if(!self || self->lMagic != NWMAGIC) return 0; + /* mark as invalid */ handle->sock = -1; + /* increment count of invalid */ self->nInvalid++; + /* leave for garbage collection */ return 1; }