From 1dd16b89c6fb3d46c34f89833fa400f7e3e17815 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 25 Jun 2017 14:03:29 -0700 Subject: [PATCH] I7000: Avoid potential compiler warnings --- I7000/i7000_chan.c | 2 +- I7000/i7000_defs.h | 4 ++-- I7000/i7010_chan.c | 2 +- I7000/i701_chan.c | 2 +- I7000/i7070_chan.c | 2 +- I7000/i7080_chan.c | 2 +- I7000/i7090_chan.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/I7000/i7000_chan.c b/I7000/i7000_chan.c index d8f36dd..9436af1 100644 --- a/I7000/i7000_chan.c +++ b/I7000/i7000_chan.c @@ -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; diff --git a/I7000/i7000_defs.h b/I7000/i7000_defs.h index fd89258..13ed71b 100644 --- a/I7000/i7000_defs.h +++ b/I7000/i7000_defs.h @@ -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_ */ diff --git a/I7000/i7010_chan.c b/I7000/i7010_chan.c index 43f1cd5..22aef40 100644 --- a/I7000/i7010_chan.c +++ b/I7000/i7010_chan.c @@ -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"}; diff --git a/I7000/i701_chan.c b/I7000/i701_chan.c index 0d56db3..9eafb9f 100644 --- a/I7000/i701_chan.c +++ b/I7000/i701_chan.c @@ -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", "", "", "", ""}; diff --git a/I7000/i7070_chan.c b/I7000/i7070_chan.c index d41460d..3a9bfc0 100644 --- a/I7000/i7070_chan.c +++ b/I7000/i7070_chan.c @@ -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", ""}; diff --git a/I7000/i7080_chan.c b/I7000/i7080_chan.c index 767dc7c..c8fac7b 100644 --- a/I7000/i7080_chan.c +++ b/I7000/i7080_chan.c @@ -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"}; diff --git a/I7000/i7090_chan.c b/I7000/i7090_chan.c index 7f5c70c..e3b6fa1 100644 --- a/I7000/i7090_chan.c +++ b/I7000/i7090_chan.c @@ -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 */