diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2012-02-29 22:12:19 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-03-24 00:14:14 +0100 |
commit | 14a131ac1cfc95e5ba2518ff887d04c034aecc53 (patch) | |
tree | 20274d65fceef494e14f3ac0c5be0171d631dfb8 /src/openvpn/pf.c | |
parent | 72c7b12cb65cee69ea129cc520b26dcc64977a17 (diff) | |
download | openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.tar.gz openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.tar.xz openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.zip |
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 <alon.barlev@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/pf.c')
-rw-r--r-- | src/openvpn/pf.c | 6 |
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 |