rename variable time to timestr to avoid shadowing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15468 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -162,7 +162,7 @@ struct _heimdal_syslog_data{
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
log_syslog(const char *time,
|
log_syslog(const char *timestr,
|
||||||
const char *msg,
|
const char *msg,
|
||||||
void *data)
|
void *data)
|
||||||
|
|
||||||
@@ -211,7 +211,7 @@ struct file_data{
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
log_file(const char *time,
|
log_file(const char *timestr,
|
||||||
const char *msg,
|
const char *msg,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
@@ -220,7 +220,7 @@ log_file(const char *time,
|
|||||||
f->fd = fopen(f->filename, f->mode);
|
f->fd = fopen(f->filename, f->mode);
|
||||||
if(f->fd == NULL)
|
if(f->fd == NULL)
|
||||||
return;
|
return;
|
||||||
fprintf(f->fd, "%s %s\n", time, msg);
|
fprintf(f->fd, "%s %s\n", timestr, msg);
|
||||||
if(f->keep_open == 0)
|
if(f->keep_open == 0)
|
||||||
fclose(f->fd);
|
fclose(f->fd);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user