On Mon, 19 Sep 2005, Joel Salomon wrote:
On 9/19/05, Russ Cox <[EMAIL PROTECTED]> wrote: The compiler is telling you that line 8 might as well read: > 8 freenode(tmp); The value you store in tmp is never used. Does the compiler know that about freenode()?
Well the freenode function is:
lnode *
freenode(lonode *ptr)
{
if (ptr != nil) {
free((void *)ptr);
ptr = nil;
}
return ptr;
}
So ptr = freenode(ptr);
looks resonable way to call.
-ishwar
