chiark / gitweb /
site: Pass msg into enter_new_state
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Sep 2019 10:46:22 +0000 (11:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Sep 2019 15:00:30 +0000 (16:00 +0100)
commit52ba8d4ede86d35c68fa4674c457df835be935e8
tree9b013c2e27c866384869da77227628555fe66a13
parent03c9b2ca595aaf5b6ff312f84d9a13c26f4e4fba
site: Pass msg into enter_new_state

The rules for when this is initialised, in site_incoming, are a
slightly complicated, so document them.

Examination of these rules reveals that the msg argument to
process_msg1 should be const, since process_msg1 (unlike the other
process_msgN functions) receives this, rather than generating it.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
site.c