Fix gcc warnings in netconfig.c