mirror of
https://github.com/simh/simh.git
synced 2026-04-29 21:16:46 +00:00
ALL: Massive 'const' cleanup
These changes facilitate more robust parameter type checking and helps to identify unexpected coding errors. Most simulators can now also be compiled with a C++ compiler without warnings. Additionally, these changes have also been configured to facilitate easier backporting of simulator and device simulation modules to run under the simh v3.9+ SCP framework.
This commit is contained in:
@@ -65,7 +65,7 @@ sofree(struct socket *so)
|
||||
Slirp *slirp = so->slirp;
|
||||
|
||||
if (so->so_emu==EMU_RSH && so->extra) {
|
||||
sofree(so->extra);
|
||||
sofree((struct socket *)so->extra);
|
||||
so->extra=NULL;
|
||||
}
|
||||
if (so == slirp->tcp_last_so) {
|
||||
|
||||
Reference in New Issue
Block a user