src: compile fix

Change-Id: I8533038df7c81dcd9bcce576e24c8c4ee507999c
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2017-05-14 17:21:46 +02:00
parent a21328139c
commit 77ef1d9cce
3 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ static void test_mydomains(struct __config *cfg){
int main(){ int main(){
struct __config cfg; 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); (void) openlog("mydomains_test", LOG_PID, LOG_MAIL);

View File

@ -104,7 +104,7 @@ int main(){
struct __config cfg; 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); (void) openlog("mydomains_test", LOG_PID, LOG_MAIL);

View File

@ -158,7 +158,7 @@ static void test_archiving_rule(struct __config *cfg){
int main(){ int main(){
struct __config cfg; 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); (void) openlog("rule_test", LOG_PID, LOG_MAIL);