Compiler suggested cleanup
This commit is contained in:
parent
5a472f8f55
commit
0b015efcac
2 changed files with 1 additions and 2 deletions
|
@ -152,7 +152,6 @@ static t_stat net_reset(DEVICE *dptr) {
|
||||||
static t_stat net_attach(UNIT *uptr, char *cptr) {
|
static t_stat net_attach(UNIT *uptr, char *cptr) {
|
||||||
uint32 i;
|
uint32 i;
|
||||||
char host[CBUFSIZE], port[CBUFSIZE];
|
char host[CBUFSIZE], port[CBUFSIZE];
|
||||||
t_stat r;
|
|
||||||
|
|
||||||
if (sim_parse_addr (cptr, host, sizeof(host), "localhost", port, sizeof(port), "3000", NULL))
|
if (sim_parse_addr (cptr, host, sizeof(host), "localhost", port, sizeof(port), "3000", NULL))
|
||||||
return SCPE_ARG;
|
return SCPE_ARG;
|
||||||
|
|
|
@ -215,7 +215,7 @@ t_stat udp_parse_remote (int32 link, char *premote)
|
||||||
// yourself!! In both cases, "w.x.y.z" is a dotted IP for the remote machine
|
// yourself!! In both cases, "w.x.y.z" is a dotted IP for the remote machine
|
||||||
// and "name.domain.com" is its name (which will be looked up to get the IP).
|
// and "name.domain.com" is its name (which will be looked up to get the IP).
|
||||||
// If the host name/IP is omitted then it defaults to "localhost".
|
// If the host name/IP is omitted then it defaults to "localhost".
|
||||||
char *end; int32 lport, rport; t_stat ret;
|
char *end; int32 lport, rport;
|
||||||
char host[64], port[16];
|
char host[64], port[16];
|
||||||
if (*premote == '\0') return SCPE_2FARG;
|
if (*premote == '\0') return SCPE_2FARG;
|
||||||
memset (udp_links[link].lport, 0, sizeof(udp_links[link].lport));
|
memset (udp_links[link].lport, 0, sizeof(udp_links[link].lport));
|
||||||
|
|
Loading…
Add table
Reference in a new issue