summaryrefslogtreecommitdiffstats
path: root/src/openvpn/pf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/pf.c')
-rw-r--r--src/openvpn/pf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvpn/pf.c b/src/openvpn/pf.c
index 729792e..7ed1e70 100644
--- a/src/openvpn/pf.c
+++ b/src/openvpn/pf.c
@@ -504,8 +504,8 @@ pf_check_reload (struct context *c)
&& c->c2.pf.filename
&& event_timeout_trigger (&c->c2.pf.reload, &c->c2.timeval, ETT_DEFAULT))
{
- openvpn_stat_t s;
- if (!openvpn_stat (c->c2.pf.filename, &s))
+ platform_stat_t s;
+ if (!platform_stat (c->c2.pf.filename, &s))
{
if (s.st_mtime > c->c2.pf.file_last_mod)
{
@@ -605,7 +605,7 @@ pf_destroy_context (struct pf_context *pfc)
#ifdef PLUGIN_PF
if (pfc->filename)
{
- delete_file (pfc->filename);
+ platform_unlink (pfc->filename);
free (pfc->filename);
}
#endif