From 20d355a0f69fdfc229e76f14d5a6adb8b5736b69 Mon Sep 17 00:00:00 2001 From: aixiao Date: Thu, 22 Oct 2020 14:20:05 +0800 Subject: [PATCH] LOFFILE -> LOGFILE --- README.md | 2 +- daemon.conf | 2 +- main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 55e6ef4..98e8322 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ PROCESS_NAME = "frpc"; //进程名称条件变量 COMMAND = "ls -al"; //进程名称条件变量不成立执行的命令 TIME = "10"; //时间条件变量, 单位秒 - LOFFILE = "log.txt"; //日志记录 + LOGFILE = "log.txt"; //日志记录 } ### Build diff --git a/daemon.conf b/daemon.conf index 483ed8e..767a7b9 100644 --- a/daemon.conf +++ b/daemon.conf @@ -2,5 +2,5 @@ global { PROCESS_NAME = "frpc"; COMMAND = "ls -al"; TIME = "10"; - LOFFILE = "log.txt"; + LOGFILE = "log.txt"; } \ No newline at end of file diff --git a/main.c b/main.c index f876ac9..29f3f69 100644 --- a/main.c +++ b/main.c @@ -53,7 +53,7 @@ char *times() int logs(char *str, char *configfile) { FILE *fp = NULL; - fp = fopen(read_conf(configfile, "global", "LOFFILE"), "a+"); + fp = fopen(read_conf(configfile, "global", "LOGFILE"), "a+"); fprintf(fp, str); return fclose(fp); }