constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10914 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -57,7 +57,7 @@ log_realloc(krb5_log_facility *f)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct s2i {
|
struct s2i {
|
||||||
char *s;
|
const char *s;
|
||||||
int val;
|
int val;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -204,8 +204,8 @@ open_syslog(krb5_context context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct file_data{
|
struct file_data{
|
||||||
char *filename;
|
const char *filename;
|
||||||
char *mode;
|
const char *mode;
|
||||||
FILE *fd;
|
FILE *fd;
|
||||||
int keep_open;
|
int keep_open;
|
||||||
};
|
};
|
||||||
@@ -236,7 +236,7 @@ close_file(void *data)
|
|||||||
|
|
||||||
static krb5_error_code
|
static krb5_error_code
|
||||||
open_file(krb5_context context, krb5_log_facility *fac, int min, int max,
|
open_file(krb5_context context, krb5_log_facility *fac, int min, int max,
|
||||||
char *filename, char *mode, FILE *f, int keep_open)
|
const char *filename, const char *mode, FILE *f, int keep_open)
|
||||||
{
|
{
|
||||||
struct file_data *fd = malloc(sizeof(*fd));
|
struct file_data *fd = malloc(sizeof(*fd));
|
||||||
if(fd == NULL) {
|
if(fd == NULL) {
|
||||||
|
Reference in New Issue
Block a user