mirror of
https://github.com/simh/simh.git
synced 2026-01-25 11:46:37 +00:00
Fixing many compiler identified nits.
This commit is contained in:
@@ -589,7 +589,7 @@ static t_bool readCardASCII ( FILE *fp,
|
||||
char *ccard,
|
||||
char *acard )
|
||||
{
|
||||
int c, col;
|
||||
int c = 0, col;
|
||||
|
||||
assert (colStart < colEnd);
|
||||
assert (colStart >= 1);
|
||||
|
||||
@@ -157,7 +157,7 @@ uint32 dz_rxi = 0; /* rcv interrupts */
|
||||
uint32 dz_txi = 0; /* xmt interrupts */
|
||||
int32 dz_mctl = 0; /* modem ctrl enabled */
|
||||
int32 dz_auto = 0; /* autodiscon enabled */
|
||||
TMLN dz_ldsc[DZ_MUXES * DZ_LINES] = { 0 }; /* line descriptors */
|
||||
TMLN dz_ldsc[DZ_MUXES * DZ_LINES] = { {0} }; /* line descriptors */
|
||||
TMXR dz_desc = { DZ_MUXES * DZ_LINES, 0, 0, dz_ldsc }; /* mux descriptor */
|
||||
|
||||
/* debugging bitmaps */
|
||||
|
||||
@@ -219,7 +219,7 @@ return show_vec (st, uptr, ((mp->lines * 2) / arg), desc);
|
||||
|
||||
void init_ubus_tab (void)
|
||||
{
|
||||
int32 i, j;
|
||||
size_t i, j;
|
||||
|
||||
for (i = 0; i < IPL_HLVL; i++) { /* clear intr tab */
|
||||
for (j = 0; j < 32; j++) {
|
||||
|
||||
@@ -2110,6 +2110,7 @@ return rq_putpkt (cp, pkt, TRUE);
|
||||
|
||||
t_bool rq_deqf (MSC *cp, int32 *pkt)
|
||||
{
|
||||
*pkt = 0;
|
||||
if (cp->freq == 0) /* no free pkts?? */
|
||||
return rq_fatal (cp, PE_NSR);
|
||||
cp->pbsy = cp->pbsy + 1; /* cnt busy pkts */
|
||||
@@ -2160,6 +2161,7 @@ t_bool rq_getpkt (MSC *cp, int32 *pkt)
|
||||
{
|
||||
uint32 addr, desc;
|
||||
|
||||
*pkt = 0;
|
||||
if (!rq_getdesc (cp, &cp->cq, &desc)) /* get cmd desc */
|
||||
return ERR;
|
||||
if ((desc & UQ_DESC_OWN) == 0) { /* none */
|
||||
@@ -2222,6 +2224,7 @@ t_bool rq_getdesc (MSC *cp, struct uq_ring *ring, uint32 *desc)
|
||||
uint32 addr = ring->ba + ring->idx;
|
||||
uint16 d[2];
|
||||
|
||||
*desc = 0;
|
||||
if (Map_ReadW (addr, 4, d)) /* fetch desc */
|
||||
return rq_fatal (cp, PE_QRE); /* err? dead */
|
||||
*desc = ((uint32) d[0]) | (((uint32) d[1]) << 16);
|
||||
|
||||
@@ -606,7 +606,7 @@ void xq_make_checksum(CTLR* xq)
|
||||
/* checksum calculation routine detailed in vaxboot.zip/xqbtdrivr.mar */
|
||||
uint32 checksum = 0;
|
||||
const uint32 wmask = 0xFFFF;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < sizeof(ETH_MAC); i += 2) {
|
||||
checksum <<= 1;
|
||||
@@ -685,7 +685,7 @@ t_stat xq_show_filters (FILE* st, UNIT* uptr, int32 val, void* desc)
|
||||
{
|
||||
CTLR* xq = xq_unit2ctlr(uptr);
|
||||
char buffer[20];
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
if (xq->var->mode == XQ_T_DELQA_PLUS) {
|
||||
eth_mac_fmt(&xq->var->init.phys, buffer);
|
||||
@@ -2803,7 +2803,7 @@ void xq_debug_setup(CTLR* xq)
|
||||
|
||||
void xq_debug_turbo_setup(CTLR* xq)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
char buffer[64] = "";
|
||||
|
||||
if (!(sim_deb && (xq->dev->dctrl & DBG_SET)))
|
||||
|
||||
Reference in New Issue
Block a user