1
0
mirror of https://github.com/simh/simh.git synced 2026-01-27 20:37:50 +00:00

PDP11, PDP18b, PDP8, VAX750, SCP: Silence Coverity identified complaints

This commit is contained in:
Mark Pizzolato
2019-02-20 08:32:37 -08:00
parent 857934d40e
commit 880c8a89b7
6 changed files with 7 additions and 7 deletions

View File

@@ -403,7 +403,7 @@ t_stat ch_wr (int32 data, int32 PA, int32 access)
t_stat ch_svc(UNIT *uptr)
{
sim_clock_coschedule (uptr, 1000);
tmxr_poll_conn (&ch_tmxr);
(void)tmxr_poll_conn (&ch_tmxr);
if (ch_lines[0].conn)
ch_receive ();
return SCPE_OK;
@@ -474,7 +474,7 @@ t_stat ch_set_peer (UNIT* uptr, int32 val, CONST char* cptr, void* desc)
if (host[0] == '\0')
return SCPE_ARG;
strncpy (peer, cptr, sizeof peer);
strlcpy (peer, cptr, sizeof peer);
return SCPE_OK;
}