From 14a131ac1cfc95e5ba2518ff887d04c034aecc53 Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Wed, 29 Feb 2012 22:12:19 +0200 Subject: build: move wrappers into platform module + Some fixups within the platform.c functions. - need to check environment set on Windows. Signed-off-by: Alon Bar-Lev Acked-by: Gert Doering Signed-off-by: David Sommerseth --- src/openvpn/pf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/openvpn/pf.c') 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 -- cgit