From 6126573e935d0bebccad603416a19902244dfaa1 Mon Sep 17 00:00:00 2001 From: SJ Date: Sun, 14 May 2017 17:21:46 +0200 Subject: [PATCH] src: compile fix Change-Id: I8533038df7c81dcd9bcce576e24c8c4ee507999c Signed-off-by: SJ --- unit_tests/check_mydomains.c | 2 +- unit_tests/check_parser.c | 2 +- unit_tests/check_rules.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unit_tests/check_mydomains.c b/unit_tests/check_mydomains.c index 3cdefa20..2ef1eed6 100644 --- a/unit_tests/check_mydomains.c +++ b/unit_tests/check_mydomains.c @@ -115,7 +115,7 @@ static void test_mydomains(struct __config *cfg){ int main(){ struct __config cfg; - if(!can_i_write_current_directory()) __fatal("cannot write current directory!"); + if(!can_i_write_directory(NULL)) __fatal("cannot write current directory!"); (void) openlog("mydomains_test", LOG_PID, LOG_MAIL); diff --git a/unit_tests/check_parser.c b/unit_tests/check_parser.c index 8f0c0ced..3835240e 100644 --- a/unit_tests/check_parser.c +++ b/unit_tests/check_parser.c @@ -104,7 +104,7 @@ int main(){ struct __config cfg; - if(!can_i_write_current_directory()) __fatal("cannot write current directory!"); + if(!can_i_write_directory(NULL)) __fatal("cannot write current directory!"); (void) openlog("mydomains_test", LOG_PID, LOG_MAIL); diff --git a/unit_tests/check_rules.c b/unit_tests/check_rules.c index 457baf1c..cfaaa777 100644 --- a/unit_tests/check_rules.c +++ b/unit_tests/check_rules.c @@ -158,7 +158,7 @@ static void test_archiving_rule(struct __config *cfg){ int main(){ struct __config cfg; - if(!can_i_write_current_directory()) __fatal("cannot write current directory!"); + if(!can_i_write_directory(NULL)) __fatal("cannot write current directory!"); (void) openlog("rule_test", LOG_PID, LOG_MAIL);