diff --git a/lib/gssapi/display_status.c b/lib/gssapi/display_status.c index 59c3bcf0f..4bb0a2677 100644 --- a/lib/gssapi/display_status.c +++ b/lib/gssapi/display_status.c @@ -35,10 +35,10 @@ RCSID("$Id$"); -static char * +static const char * calling_error(OM_uint32 v) { - static char *msgs[] = { + static const char *msgs[] = { NULL, /* 0 */ "A required input parameter could not be read.", /* */ "A required output parameter could not be written.", /* */ @@ -55,10 +55,10 @@ calling_error(OM_uint32 v) return msgs[v]; } -static char * +static const char * routine_error(OM_uint32 v) { - static char *msgs[] = { + static const char *msgs[] = { NULL, /* 0 */ "An unsupported mechanism was requested", "An invalid name was supplied", @@ -91,10 +91,10 @@ routine_error(OM_uint32 v) return msgs[v]; } -static char * +static const char * supplementary_error(OM_uint32 v) { - static char *msgs[] = { + static const char *msgs[] = { "normal completion", "continuation call to routine required", "duplicate per-message token detected", diff --git a/lib/gssapi/krb5/display_status.c b/lib/gssapi/krb5/display_status.c index 59c3bcf0f..4bb0a2677 100644 --- a/lib/gssapi/krb5/display_status.c +++ b/lib/gssapi/krb5/display_status.c @@ -35,10 +35,10 @@ RCSID("$Id$"); -static char * +static const char * calling_error(OM_uint32 v) { - static char *msgs[] = { + static const char *msgs[] = { NULL, /* 0 */ "A required input parameter could not be read.", /* */ "A required output parameter could not be written.", /* */ @@ -55,10 +55,10 @@ calling_error(OM_uint32 v) return msgs[v]; } -static char * +static const char * routine_error(OM_uint32 v) { - static char *msgs[] = { + static const char *msgs[] = { NULL, /* 0 */ "An unsupported mechanism was requested", "An invalid name was supplied", @@ -91,10 +91,10 @@ routine_error(OM_uint32 v) return msgs[v]; } -static char * +static const char * supplementary_error(OM_uint32 v) { - static char *msgs[] = { + static const char *msgs[] = { "normal completion", "continuation call to routine required", "duplicate per-message token detected",