From db91afbaafad8c994c7859bdfe7cae922299f227 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 5 Sep 2013 23:30:22 -0700 Subject: [PATCH] VAX: Compiler warning cleanup --- VAX/vax_cpu.c | 2 +- VAX/vax_vc.c | 2 +- VAX/vax_watch.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/VAX/vax_cpu.c b/VAX/vax_cpu.c index 0bec9598..99491b08 100644 --- a/VAX/vax_cpu.c +++ b/VAX/vax_cpu.c @@ -408,7 +408,7 @@ UNIT cpu_unit = { UDATA (&cpu_idle_svc, UNIT_FIX|UNIT_BINK, INITMEMSIZE) }; -char *psl_modes[] = {"K", "E", "S", "U"}; +const char *psl_modes[] = {"K", "E", "S", "U"}; BITFIELD psl_bits[] = { diff --git a/VAX/vax_vc.c b/VAX/vax_vc.c index 56075f9f..2112cb17 100644 --- a/VAX/vax_vc.c +++ b/VAX/vax_vc.c @@ -102,7 +102,7 @@ BITFIELD vc_icsr_bits[] = { }; -char *vc_icm_rp_names[] = {"ISR", "IMR", "IRR", "ACR"}; +const char *vc_icm_rp_names[] = {"ISR", "IMR", "IRR", "ACR"}; /* mode - interrupt controller mode register */ diff --git a/VAX/vax_watch.c b/VAX/vax_watch.c index 7b92cb8c..6e1bc99c 100644 --- a/VAX/vax_watch.c +++ b/VAX/vax_watch.c @@ -42,7 +42,7 @@ #define WTC_CSRA_DV (WTC_CSRA_M_DV << WTC_CSRA_V_DV) #define WTC_CSRA_UIP 0x80 /* update in progess (BUSY) */ #define WTC_CSRA_WR (WTC_CSRA_RS | WTC_CSRA_DV) -char *wtc_dv_modes[] = {"4.194304MHz", "1.048576MHz", "32.768KHz", "Any", "Any", "Test-Only", "Test-Only", "Test-Only"}; +const char *wtc_dv_modes[] = {"4.194304MHz", "1.048576MHz", "32.768KHz", "Any", "Any", "Test-Only", "Test-Only", "Test-Only"}; BITFIELD wtc_csra_bits[] = { BITNCF(4), /* Rate Select - unused MBZ for VMS */ BITFNAM(DV,3,wtc_dv_modes), /* Divider Select */ @@ -59,9 +59,9 @@ BITFIELD wtc_csra_bits[] = { #define WTC_CSRB_UIE 0x10 /* update ended interrupt enable (Not Used by VMS) */ #define WTC_CSRB_SQWE 0x08 /* square wave enable (Not Used by VMS) */ #define WTC_CSRB_WR (WTC_CSRB_DSE | WTC_CSRB_2412 | WTC_CSRB_DM | WTC_CSRB_SET) -char *wtc_dse_modes[] = {"Disabled", "Enabled"}; -char *wtc_hr_modes[] = {"12Hr", "24Hr"}; -char *wtc_data_modes[] = {"BCD", "Binary"}; +const char *wtc_dse_modes[] = {"Disabled", "Enabled"}; +const char *wtc_hr_modes[] = {"12Hr", "24Hr"}; +const char *wtc_data_modes[] = {"BCD", "Binary"}; BITFIELD wtc_csrb_bits[] = { BITFNAM(DST,1,wtc_dse_modes), /* Daylight Savings Time Enable */ 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 #define WTC_MODE_STD 0 #define WTC_MODE_VMS 1 -char *wtc_modes[] = {"Std", "VMS"}; +const char *wtc_modes[] = {"Std", "VMS"}; BITFIELD wtc_mode_bits[] = { BITFNAM(MODE,1,wtc_modes), /* Watch Date/Time mode */ ENDBITS