Compiler indicated cleanups
This commit is contained in:
parent
76fc90f405
commit
0e753b7c45
9 changed files with 31 additions and 10 deletions
|
@ -175,7 +175,7 @@ typedef struct h316_dib DIB;
|
||||||
#define INT_V_NODEF 17 /* int not deferred */
|
#define INT_V_NODEF 17 /* int not deferred */
|
||||||
#define INT_V_ON 18 /* int on */
|
#define INT_V_ON 18 /* int on */
|
||||||
#define INT_V_EXTD 16 /* first extended interrupt */
|
#define INT_V_EXTD 16 /* first extended interrupt */
|
||||||
#define INT_V_NONE -1 /* no interrupt used */
|
#define INT_V_NONE 0xffffffff /* no interrupt used */
|
||||||
|
|
||||||
/* I/O macros */
|
/* I/O macros */
|
||||||
|
|
||||||
|
|
21
H316/tests/implloop4.cmd
Normal file
21
H316/tests/implloop4.cmd
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
;; *** IMP LINE FOUR (ONLY!) LOOPBACK TEST ***
|
||||||
|
|
||||||
|
; Set the simulator configuration ...
|
||||||
|
echo IMP line four loopback test...
|
||||||
|
do impconfig.cmd
|
||||||
|
SET IMP NUM=2
|
||||||
|
|
||||||
|
; Load the IMP code ...
|
||||||
|
echo Loading IMP code ...
|
||||||
|
do impcode.cmd
|
||||||
|
|
||||||
|
; Start up the modem links!
|
||||||
|
SET MI1 DISABLED
|
||||||
|
SET MI2 DISABLED
|
||||||
|
SET MI3 DISABLED
|
||||||
|
SET MI4 ENABLED
|
||||||
|
DEPOSIT MI4 LLOOP 1
|
||||||
|
SET MI5 DISABLED
|
||||||
|
|
||||||
|
; And we're done ..
|
||||||
|
echo Type GO to start ...
|
|
@ -887,7 +887,7 @@ static t_stat cp_set_code (UNIT *uptr, int32 match, char *cptr, void *desc)
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
t_stat load_cr_boot (int drvno, int switches)
|
t_stat load_cr_boot (int32 drvno, int switches)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char *name, msg[80];
|
char *name, msg[80];
|
||||||
|
@ -972,7 +972,7 @@ t_stat load_cr_boot (int drvno, int switches)
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
t_stat cr_boot (int unitno, DEVICE *dptr)
|
t_stat cr_boot (int32 unitno, DEVICE *dptr)
|
||||||
{
|
{
|
||||||
t_stat rval;
|
t_stat rval;
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -269,7 +269,7 @@ void xio_t2741_terminal (int32 addr, int32 func, int32 modify); /* IO selectr
|
||||||
void xio_error (char *msg);
|
void xio_error (char *msg);
|
||||||
|
|
||||||
void bail (char *msg);
|
void bail (char *msg);
|
||||||
t_stat load_cr_boot (int drv, int switches);
|
t_stat load_cr_boot (int32 drv, int switches);
|
||||||
t_stat cr_boot (int32 unitno, DEVICE *dptr);
|
t_stat cr_boot (int32 unitno, DEVICE *dptr);
|
||||||
t_stat cr_rewind (void);
|
t_stat cr_rewind (void);
|
||||||
t_stat cr_detach (UNIT *uptr);
|
t_stat cr_detach (UNIT *uptr);
|
||||||
|
|
|
@ -649,7 +649,7 @@ static t_stat prt1403_svc(UNIT *uptr)
|
||||||
|
|
||||||
/* delete_cmd - SCP command to delete a file */
|
/* delete_cmd - SCP command to delete a file */
|
||||||
|
|
||||||
static t_stat delete_cmd (int flag, char *cptr)
|
static t_stat delete_cmd (int32 flag, char *cptr)
|
||||||
{
|
{
|
||||||
char gbuf[CBUFSIZE];
|
char gbuf[CBUFSIZE];
|
||||||
int status;
|
int status;
|
||||||
|
|
|
@ -349,7 +349,7 @@ return TRUE;
|
||||||
|
|
||||||
static void *remqueue (QH *entry)
|
static void *remqueue (QH *entry)
|
||||||
{
|
{
|
||||||
if (entry->queue->count <= 0)
|
if (entry->queue->count == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
entry->prev->next = entry->next;
|
entry->prev->next = entry->next;
|
||||||
entry->next->prev = entry->prev;
|
entry->next->prev = entry->prev;
|
||||||
|
|
|
@ -654,7 +654,7 @@ static void kmc_ctrlIn (int32 k, dupstate *d, int line);
|
||||||
|
|
||||||
/* Receive functions */
|
/* Receive functions */
|
||||||
void kmc_rxBufferIn(dupstate *d, int32 ba, uint32 sel6v);
|
void kmc_rxBufferIn(dupstate *d, int32 ba, uint32 sel6v);
|
||||||
static void kdp_receive(int dupidx, int count);
|
static void kdp_receive(int32 dupidx, int count);
|
||||||
|
|
||||||
/* Transmit functions */
|
/* Transmit functions */
|
||||||
static void kmc_txBufferIn(dupstate *d, int32 ba, uint32 sel6v);
|
static void kmc_txBufferIn(dupstate *d, int32 ba, uint32 sel6v);
|
||||||
|
@ -2036,7 +2036,7 @@ void kmc_rxBufferIn(dupstate *d, int32 ba, uint32 sel6v) {
|
||||||
* requires them for other modes.
|
* requires them for other modes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void kdp_receive(int dupidx, int count) {
|
static void kdp_receive(int32 dupidx, int count) {
|
||||||
int32 k;
|
int32 k;
|
||||||
dupstate* d;
|
dupstate* d;
|
||||||
UNIT *rxup;
|
UNIT *rxup;
|
||||||
|
|
|
@ -278,7 +278,7 @@ return;
|
||||||
struct reglink { /* register linkage */
|
struct reglink { /* register linkage */
|
||||||
uint32 low; /* low addr */
|
uint32 low; /* low addr */
|
||||||
uint32 high; /* high addr */
|
uint32 high; /* high addr */
|
||||||
t_stat (*read)(int32 pa); /* read routine */
|
int32 (*read)(int32 pa); /* read routine */
|
||||||
void (*write)(int32 pa, int32 val, int32 lnt); /* write routine */
|
void (*write)(int32 pa, int32 val, int32 lnt); /* write routine */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3013,7 +3013,7 @@ do {
|
||||||
u_char buf[ETH_MAX_JUMBO_FRAME];
|
u_char buf[ETH_MAX_JUMBO_FRAME];
|
||||||
|
|
||||||
memset(&header, 0, sizeof(header));
|
memset(&header, 0, sizeof(header));
|
||||||
len = (int)sim_read_sock (dev->fd_handle, buf, (int32)sizeof(buf));
|
len = (int)sim_read_sock (dev->fd_handle, (char *)buf, (int32)sizeof(buf));
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
status = 1;
|
status = 1;
|
||||||
header.caplen = header.len = len;
|
header.caplen = header.len = len;
|
||||||
|
|
Loading…
Add table
Reference in a new issue