+2001-07-08 Ezra Peisach <epeisach@mit.edu>
+
+ * logger.c (severity2string): Declare as returning const char *.
+ (klog_com_err_proc): Do not discard const status of format string.
+
2001-07-06 Ezra Peisach <epeisach@mit.edu>
* server_internal.h: Add prototype for krb5_copy_key_data_contents.
{
char outbuf[KRB5_KLOG_MAX_ERRMSG_SIZE];
int lindex;
- char *actual_format;
+ const char *actual_format;
#ifdef HAVE_SYSLOG
int log_pri = -1;
#endif /* HAVE_SYSLOG */
}
cp = &outbuf[strlen(outbuf)];
- actual_format = (char *) format;
+ actual_format = format;
#ifdef HAVE_SYSLOG
/*
* This is an unpleasant hack. If the first character is less than
* intermediate representation.
*/
if ((((unsigned char) *format) > 0) && (((unsigned char) *format) <= 8)) {
- actual_format = (char *) (format + 1);
+ actual_format = (format + 1);
switch ((unsigned char) *format) {
#ifdef LOG_EMERG
case 1:
/*
* severity2string() - Convert a severity to a string.
*/
-static char *
+static const char *
severity2string(severity)
int severity;
{
break;
#endif /* LOG_DEBUG */
}
- return((char *) ss);
+ return(ss);
}
/*