chiark / gitweb /
site: Move main `struct msg' into site_incoming
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Sep 2019 10:35:30 +0000 (11:35 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Sep 2019 14:59:58 +0000 (15:59 +0100)
commit03c9b2ca595aaf5b6ff312f84d9a13c26f4e4fba
tree09f84f618b7a8ee0bdae9ee7bc168e648a82a074
parentbac322db85a7951f61029e77c67f3ea6672f58a9
site: Move main `struct msg' into site_incoming

We are going to want this in more places, and this is going to involve
threading it through site_incoming.  So make this a local variable
there, rather than in each of the process_msgN functions.

We rename the variable `named_msg' to `msg': it was called `named_msg'
because it was only valid after our calls to named_for_us, but now it
is valid after process_msgN too.

No overall functional change, except that stack usage is improved (by
removing a copy of struct msg).

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