Warning fixes from Christos Zoulas
- shadowed variables - signed/unsigned confusion - const lossage - incomplete structure initializations - unused code
This commit is contained in:
10
kdc/log.c
10
kdc/log.c
@@ -50,10 +50,12 @@ kdc_openlog(krb5_context context,
|
||||
krb5_addlog_dest(context, config->logf, *p);
|
||||
krb5_config_free_strings(s);
|
||||
}else {
|
||||
char *s;
|
||||
asprintf(&s, "0-1/FILE:%s/%s", hdb_db_dir(context), KDC_LOG_FILE);
|
||||
krb5_addlog_dest(context, config->logf, s);
|
||||
free(s);
|
||||
char *ss;
|
||||
if (asprintf(&ss, "0-1/FILE:%s/%s", hdb_db_dir(context),
|
||||
KDC_LOG_FILE) < 0)
|
||||
err(1, NULL);
|
||||
krb5_addlog_dest(context, config->logf, ss);
|
||||
free(ss);
|
||||
}
|
||||
krb5_set_warn_dest(context, config->logf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user