Skip to content

Commit db91afb

Browse files
committed
VAX: Compiler warning cleanup
1 parent ddc9398 commit db91afb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

VAX/vax_cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ UNIT cpu_unit = {
408408
UDATA (&cpu_idle_svc, UNIT_FIX|UNIT_BINK, INITMEMSIZE)
409409
};
410410

411-
char *psl_modes[] = {"K", "E", "S", "U"};
411+
const char *psl_modes[] = {"K", "E", "S", "U"};
412412

413413

414414
BITFIELD psl_bits[] = {

VAX/vax_vc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ BITFIELD vc_icsr_bits[] = {
102102
};
103103

104104

105-
char *vc_icm_rp_names[] = {"ISR", "IMR", "IRR", "ACR"};
105+
const char *vc_icm_rp_names[] = {"ISR", "IMR", "IRR", "ACR"};
106106

107107
/* mode - interrupt controller mode register */
108108

VAX/vax_watch.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define WTC_CSRA_DV (WTC_CSRA_M_DV << WTC_CSRA_V_DV)
4343
#define WTC_CSRA_UIP 0x80 /* update in progess (BUSY) */
4444
#define WTC_CSRA_WR (WTC_CSRA_RS | WTC_CSRA_DV)
45-
char *wtc_dv_modes[] = {"4.194304MHz", "1.048576MHz", "32.768KHz", "Any", "Any", "Test-Only", "Test-Only", "Test-Only"};
45+
const char *wtc_dv_modes[] = {"4.194304MHz", "1.048576MHz", "32.768KHz", "Any", "Any", "Test-Only", "Test-Only", "Test-Only"};
4646
BITFIELD wtc_csra_bits[] = {
4747
BITNCF(4), /* Rate Select - unused MBZ for VMS */
4848
BITFNAM(DV,3,wtc_dv_modes), /* Divider Select */
@@ -59,9 +59,9 @@ BITFIELD wtc_csra_bits[] = {
5959
#define WTC_CSRB_UIE 0x10 /* update ended interrupt enable (Not Used by VMS) */
6060
#define WTC_CSRB_SQWE 0x08 /* square wave enable (Not Used by VMS) */
6161
#define WTC_CSRB_WR (WTC_CSRB_DSE | WTC_CSRB_2412 | WTC_CSRB_DM | WTC_CSRB_SET)
62-
char *wtc_dse_modes[] = {"Disabled", "Enabled"};
63-
char *wtc_hr_modes[] = {"12Hr", "24Hr"};
64-
char *wtc_data_modes[] = {"BCD", "Binary"};
62+
const char *wtc_dse_modes[] = {"Disabled", "Enabled"};
63+
const char *wtc_hr_modes[] = {"12Hr", "24Hr"};
64+
const char *wtc_data_modes[] = {"BCD", "Binary"};
6565
BITFIELD wtc_csrb_bits[] = {
6666
BITFNAM(DST,1,wtc_dse_modes), /* Daylight Savings Time Enable */
6767
BITFNAM(24HR,1,wtc_hr_modes), /* 24/12 Hour Mode */
@@ -95,7 +95,7 @@ BITFIELD* wtc_bitdefs[] = {wtc_value_bits, wtc_value_bits, wtc_value_bits, wtc_v
9595

9696
#define WTC_MODE_STD 0
9797
#define WTC_MODE_VMS 1
98-
char *wtc_modes[] = {"Std", "VMS"};
98+
const char *wtc_modes[] = {"Std", "VMS"};
9999
BITFIELD wtc_mode_bits[] = {
100100
BITFNAM(MODE,1,wtc_modes), /* Watch Date/Time mode */
101101
ENDBITS

0 commit comments

Comments
 (0)