From ca6ed090ffc02a00969ed5f3b8cd0a3c81492b98 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 19 Jun 1996 19:29:14 +0000 Subject: [PATCH] made character string pointers be const --- src/ca/caerr.h | 11 ++++++----- src/include/caerr.h | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/ca/caerr.h b/src/ca/caerr.h index ccc508bac..df3437504 100644 --- a/src/ca/caerr.h +++ b/src/ca/caerr.h @@ -149,12 +149,13 @@ HDRVERSIONID(caerrh, "@(#) $Id$") #define ECA_NOWTACCESS DEFMSG(CA_K_WARNING, 47) #define ECA_ANACHRONISM DEFMSG(CA_K_ERROR, 48) #define ECA_NOSEARCHADDR DEFMSG(CA_K_WARNING, 49) +#define ECA_NOCONVERT DEFMSG(CA_K_WARNING, 50) #ifndef CA_ERROR_GLBLSOURCE -epicsShareExtern char *ca_message_text[]; +epicsShareExtern const char *ca_message_text[]; #else -char *ca_message_text[] +const char *ca_message_text[] = { "Normal successful completion", @@ -206,11 +207,11 @@ char *ca_message_text[] "Read access denied", "Write access denied", "Sorry, that anachronistic feature of CA is no longer supported", -"The search request/beacon address list was empty after initialization" +"The search request/beacon address list was empty after initialization", +"Data conversion between client's type and the server's type failed" }; #endif -#define ca_message(STATUS)\ -(ca_message_text[CA_EXTRACT_MSG_NO((STATUS))]) +const char *ca_message(long ca_status); #endif diff --git a/src/include/caerr.h b/src/include/caerr.h index ccc508bac..df3437504 100644 --- a/src/include/caerr.h +++ b/src/include/caerr.h @@ -149,12 +149,13 @@ HDRVERSIONID(caerrh, "@(#) $Id$") #define ECA_NOWTACCESS DEFMSG(CA_K_WARNING, 47) #define ECA_ANACHRONISM DEFMSG(CA_K_ERROR, 48) #define ECA_NOSEARCHADDR DEFMSG(CA_K_WARNING, 49) +#define ECA_NOCONVERT DEFMSG(CA_K_WARNING, 50) #ifndef CA_ERROR_GLBLSOURCE -epicsShareExtern char *ca_message_text[]; +epicsShareExtern const char *ca_message_text[]; #else -char *ca_message_text[] +const char *ca_message_text[] = { "Normal successful completion", @@ -206,11 +207,11 @@ char *ca_message_text[] "Read access denied", "Write access denied", "Sorry, that anachronistic feature of CA is no longer supported", -"The search request/beacon address list was empty after initialization" +"The search request/beacon address list was empty after initialization", +"Data conversion between client's type and the server's type failed" }; #endif -#define ca_message(STATUS)\ -(ca_message_text[CA_EXTRACT_MSG_NO((STATUS))]) +const char *ca_message(long ca_status); #endif