It looks like the c++ compiler is complaining (quite rightly) about a clash of types.
The correct fix is probably to make
init_stream() take an unsigned argument but I think that's quite a big change. For now, I think changing a few places where
size is a
tui32 to being an
int will work, provided the existing overflow checks are adequate.
It's not just libscp_v0.c that's affected but I think all the occurrences will be the same problem.
Most annoying thing here is I logged out of the web interface and now I can't log in again! Looks like I can push over ssh though.