Change conn_(type|state)_to_string from const arrays to switch functions so we (I...
commitb897cb1ec31f2404ecfdddf9da8ad2e106b72278
authorNick Mathewson <nickm@torproject.org>
Thu, 7 Apr 2005 20:25:22 +0000 (7 20:25 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 7 Apr 2005 20:25:22 +0000 (7 20:25 +0000)
tree0886ec32a4b7c0b471b6ae6c04552a8b0b9648f9
parent3a0fb0f00775b961e282d1c4a7ec034bee3cdb14
Change conn_(type|state)_to_string from const arrays to switch functions so we (I) will not make Tor crash the next time we (I) add a new state.

svn:r4045
src/or/connection.c
src/or/connection_edge.c
src/or/main.c
src/or/or.h
src/or/relay.c