aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-08-25 14:55:44 +0200
committerHarald Welte <laforge@gnumonks.org>2010-08-25 18:10:19 +0200
commit0083cd381c9ad7d65789db612771868d2be22696 (patch)
tree1c25fcd44187705e9fa2af60e42b130385031dd0
parentd4bb7ab66b6f31b2dc5a54b61aa294188e7fc74f (diff)
logging: rename tgt_stdout to tgt_file
-rw-r--r--include/osmocore/logging.h2
-rw-r--r--src/logging.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/include/osmocore/logging.h b/include/osmocore/logging.h
index 7bf24403..70e8f149 100644
--- a/include/osmocore/logging.h
+++ b/include/osmocore/logging.h
@@ -84,7 +84,7 @@ struct log_target {
union {
struct {
FILE *out;
- } tgt_stdout;
+ } tgt_file;
struct {
int priority;
diff --git a/src/logging.c b/src/logging.c
index 30316a5f..fe782a67 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -296,10 +296,10 @@ void log_set_category_filter(struct log_target *target, int category,
/* since C89/C99 says stderr is a macro, we can safely do this! */
#ifdef stderr
-static void _stderr_output(struct log_target *target, const char *log)
+static void _file_output(struct log_target *target, const char *log)
{
- fprintf(target->tgt_stdout.out, "%s", log);
- fflush(target->tgt_stdout.out);
+ fprintf(target->tgt_file.out, "%s", log);
+ fflush(target->tgt_file.out);
}
#endif
@@ -340,8 +340,8 @@ struct log_target *log_target_create_stderr(void)
if (!target)
return NULL;
- target->tgt_stdout.out = stderr;
- target->output = _stderr_output;
+ target->tgt_file.out = stderr;
+ target->output = _file_output;
return target;
#else
return NULL;