nc: pass protocol name to connection_info()
authortb <tb@openbsd.org>
Sun, 18 Dec 2022 12:47:31 +0000 (12:47 +0000)
committertb <tb@openbsd.org>
Sun, 18 Dec 2022 12:47:31 +0000 (12:47 +0000)
commit07174b4968c125f1bf9f51a9875eb5926bd9c296
treec687bbb0d6d6b1c4f14d6a990eaa75cb4afb7da1
parent1bc688b930505c5dceb7a90cbbb247ec236a403c
nc: pass protocol name to connection_info()

Avoids repeated use of ternary operator on globals.
usr.bin/nc/netcat.c