fix trivial compiler warning in net.c