commit | 5f13bb0c3ade513ec3f88af8b6c0f575fa00cc4b | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Thu Jul 30 16:32:12 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Thu Jul 30 16:32:12 2009 +0000 |
tree | c5951ede730fd867a6b658479574472d8eb1bcfa | |
parent | 479d614884f66e9fa11f1292a2ef36991da46c1d [diff] |
There aren't many client message types or code to handle them so get rid of the lookup table and use a switch, merge the tiny handler functions into it, and move the whole lot to client.c. Also change client_msg_dispatch to consume as many messages as possible and move the call to it to the right place so it checks for signals afterwards. Prompted by suggestions from eric@.