summaryrefslogtreecommitdiff
path: root/sysdep/unix/config.Y
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-11-13 18:13:11 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-11-18 14:03:50 +0100
commitc68ba7d093e1fcf01fceb341438fc5dc95f93ac5 (patch)
treec823dff2a455da9635a4c669f0a7ea50fd91153a /sysdep/unix/config.Y
parentd0b4597842ba1f65e5280529fca243ce5b5043fa (diff)
Unix: Refactor tracked files
We need access to resource in order to free it.
Diffstat (limited to 'sysdep/unix/config.Y')
-rw-r--r--sysdep/unix/config.Y10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdep/unix/config.Y b/sysdep/unix/config.Y
index 1bffa322..b8572c90 100644
--- a/sysdep/unix/config.Y
+++ b/sysdep/unix/config.Y
@@ -41,9 +41,9 @@ syslog_name:
log_file:
text {
- FILE *f = tracked_fopen(new_config->pool, $1, "a");
- if (!f) cf_error("Unable to open log file `%s': %m", $1);
- $$ = f;
+ struct rfile *f = rf_open(new_config->pool, $1, "a");
+ if (!f) cf_error("Unable to open log file '%s': %m", $1);
+ $$ = rf_file(f);
}
| SYSLOG syslog_name { $$ = NULL; new_config->syslog_name = $2; }
| STDERR { $$ = stderr; }
@@ -77,9 +77,9 @@ conf: mrtdump_base ;
mrtdump_base:
MRTDUMP PROTOCOLS mrtdump_mask ';' { new_config->proto_default_mrtdump = $3; }
| MRTDUMP text ';' {
- FILE *f = tracked_fopen(new_config->pool, $2, "a");
+ struct rfile *f = rf_open(new_config->pool, $2, "a");
if (!f) cf_error("Unable to open MRTDump file '%s': %m", $2);
- new_config->mrtdump_file = fileno(f);
+ new_config->mrtdump_file = rf_fileno(f);
}
;