nc: factor printing of connection info into a function
authortb <tb@openbsd.org>
Sun, 18 Dec 2022 12:45:34 +0000 (12:45 +0000)
committertb <tb@openbsd.org>
Sun, 18 Dec 2022 12:45:34 +0000 (12:45 +0000)
commit1bc688b930505c5dceb7a90cbbb247ec236a403c
tree522d432c3623743679d743893603dfdca88f2154
parent3ac75170397c512b3e8a6a149c2fad637444cf78
nc: factor printing of connection info into a function

This simply moves a chunk of code in this spaghetti mess into its own
function with minimal changes.

idea from a diff by mpf
usr.bin/nc/netcat.c