net: fix some warnings [adridu59]