Compiler suggested cleanup

This commit is contained in:
Mark Pizzolato 2013-03-24 05:43:28 -07:00
parent 249f40e4bc
commit 2f85000dbc

View file

@ -804,8 +804,8 @@ if (mp->master) {
lp->ipad = address; /* ip address */ lp->ipad = address; /* ip address */
lp->notelnet = mp->notelnet; /* apply mux default telnet setting */ lp->notelnet = mp->notelnet; /* apply mux default telnet setting */
if (!lp->notelnet) { if (!lp->notelnet) {
sim_write_sock (newsock, mantra, sizeof(mantra)); sim_write_sock (newsock, (char *)mantra, sizeof(mantra));
tmxr_debug (TMXR_DBG_XMT, lp, "Sending", mantra, sizeof(mantra)); tmxr_debug (TMXR_DBG_XMT, lp, "Sending", (char *)mantra, sizeof(mantra));
} }
tmxr_report_connection (mp, lp); tmxr_report_connection (mp, lp);
lp->cnms = sim_os_msec (); /* time of connection */ lp->cnms = sim_os_msec (); /* time of connection */
@ -868,8 +868,8 @@ for (i = 0; i < mp->lines; i++) { /* check each line in se
lp->sock = newsock; /* save socket */ lp->sock = newsock; /* save socket */
lp->ipad = address; /* ip address */ lp->ipad = address; /* ip address */
if (!lp->notelnet) { if (!lp->notelnet) {
sim_write_sock (newsock, mantra, sizeof(mantra)); sim_write_sock (newsock, (char *)mantra, sizeof(mantra));
tmxr_debug (TMXR_DBG_XMT, lp, "Sending", mantra, sizeof(mantra)); tmxr_debug (TMXR_DBG_XMT, lp, "Sending", (char *)mantra, sizeof(mantra));
} }
tmxr_report_connection (mp, lp); tmxr_report_connection (mp, lp);
lp->cnms = sim_os_msec (); /* time of connection */ lp->cnms = sim_os_msec (); /* time of connection */