Constify strings to avoid warnings.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15951 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-08-23 08:30:55 +00:00
parent 13ef94d8d7
commit 9f66cd3701
2 changed files with 12 additions and 12 deletions

View File

@@ -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",