SCP: Silence compiler warnings
This commit is contained in:
parent
55e211dd3d
commit
d91d47d1f4
2 changed files with 4 additions and 3 deletions
|
@ -1732,8 +1732,8 @@ if (capac && (capac != (t_offset)-1)) {
|
|||
if ((filesystem_capac != (t_offset)-1) && /* Known file system data size AND */
|
||||
(filesystem_capac > capac)) /* Data size greater than container size? */
|
||||
capac = filesystem_capac; /* Use file system data size */
|
||||
if ((filesystem_capac != (t_offset)-1) && /* Known file system data size AND */
|
||||
(capac > (((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))) || /* Data > current size */
|
||||
if (((filesystem_capac != (t_offset)-1) && /* Known file system data size AND */
|
||||
(capac > (((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1)))) || /* Data > current size */
|
||||
(DKUF_F_STD != DK_GET_FMT (uptr))) /* OR ! autosizeable disk */
|
||||
uptr->capac = (t_addr)(capac/(ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))); /* update current size */
|
||||
}
|
||||
|
|
|
@ -713,12 +713,13 @@ if (lp->serport) { /* serial port connectio
|
|||
else { /* Telnet connection */
|
||||
written = sim_write_sock (lp->sock, &(lp->txb[i]), length);
|
||||
|
||||
if (written == SOCKET_ERROR) /* did an error occur? */
|
||||
if (written == SOCKET_ERROR) { /* did an error occur? */
|
||||
if (lp->datagram)
|
||||
return written; /* ignore errors on datagram sockets */
|
||||
else
|
||||
return -1; /* return error indication */
|
||||
}
|
||||
}
|
||||
if ((written > 0) && (lp->txbps) && (sim_is_running))
|
||||
lp->txnexttime = floor (sim_gtime () + ((written * lp->txdelta * sim_timer_inst_per_sec ()) / TMXR_RX_BPS_UNIT_SCALE));
|
||||
return written;
|
||||
|
|
Loading…
Add table
Reference in a new issue