netcat: move variables around to avoid forward declarations

No need for forward declarations, just move the code around a bit,
saving us a number of lines.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>