mirror of
https://github.com/rcornwell/sims.git
synced 2026-01-22 02:25:05 +00:00
Merge pull request #7 from markpizz/master
I7000: Avoid potential compiler warnings
This commit is contained in:
commit
4e2e615371
@ -127,7 +127,7 @@ chan_set_devs(DEVICE * dptr)
|
||||
}
|
||||
|
||||
/* Print help for "SET dev CHAN" based on allowed types */
|
||||
void help_set_chan_type(FILE *st, DEVICE *dptr, char *name)
|
||||
void help_set_chan_type(FILE *st, DEVICE *dptr, const char *name)
|
||||
{
|
||||
#if NUM_CHAN > 1
|
||||
DIB *dibp = (DIB *) dptr->ctxt;
|
||||
|
||||
@ -614,7 +614,7 @@ extern int cycle_time;
|
||||
extern const char mem_to_ascii[64];
|
||||
|
||||
extern const char *cpu_description(DEVICE *dptr);
|
||||
extern char *chan_type_name[];
|
||||
extern void help_set_chan_type(FILE *st, DEVICE *dptr, char *name);
|
||||
extern const char *chan_type_name[];
|
||||
extern void help_set_chan_type(FILE *st, DEVICE *dptr, const char *name);
|
||||
|
||||
#endif /* _I7000_H_ */
|
||||
|
||||
@ -79,7 +79,7 @@ extern uint8 urec_irq[NUM_CHAN];
|
||||
#define CHAN_DSK_RD 0100 /* Command is read command */
|
||||
#define CHAN_OVLP 0200 /* Channel ran overlaped */
|
||||
|
||||
char *chan_type_name[] = {
|
||||
const char *chan_type_name[] = {
|
||||
"Polled", "Unit Record", "7010", "7010", "7010"};
|
||||
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ t_uint64 assembly[NUM_CHAN]; /* Assembly register */
|
||||
uint32 chan_flags[NUM_CHAN]; /* Unit status */
|
||||
uint8 bcnt[NUM_CHAN]; /* Character count */
|
||||
|
||||
char *chan_type_name[] = {
|
||||
const char *chan_type_name[] = {
|
||||
"Polled", "", "", "", ""};
|
||||
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ extern uint16 pri_latchs[10];
|
||||
#define CHAN_START 0x200000 /* Channel has just started */
|
||||
#define CHAN_OCTAL 0x400000 /* Octal conversion */
|
||||
|
||||
char *chan_type_name[] = {
|
||||
const char *chan_type_name[] = {
|
||||
"Polled", "Unit Record", "7604", "7907", ""};
|
||||
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ extern uint8 inquiry;
|
||||
#define READ_WRD 1
|
||||
#define WRITE_WRD 2
|
||||
|
||||
char *chan_type_name[] = {
|
||||
const char *chan_type_name[] = {
|
||||
"Polled", "Unit Record", "7621", "7908", "754"};
|
||||
|
||||
|
||||
|
||||
@ -138,7 +138,7 @@ uint8 chan_irq[NUM_CHAN]; /* Channel has a irq pending */
|
||||
|
||||
/* Globally visible flags */
|
||||
|
||||
char *chan_type_name[] = {
|
||||
const char *chan_type_name[] = {
|
||||
"Polled", "Unit Record", "7607", "7909", "7289"};
|
||||
|
||||
/* Delay device for IOD instruction */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user