From b485d17e6da3882ad43ae31a2335b79bdcde1ac9 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Wed, 19 Oct 2022 12:48:31 +0800 Subject: [PATCH] style: constant define --- include/constant.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/constant.h b/include/constant.h index b2b09da..6f064a8 100644 --- a/include/constant.h +++ b/include/constant.h @@ -15,8 +15,6 @@ #define VERSION "1.3.2" #define CONFIG_FILE "cleardns.yml" -#define ADGUARD_USER "admin" -#define ADGUARD_PASSWD "cleardns" #define DNSPROXY_BIN "dnsproxy" #define OVERTURE_BIN "overture" @@ -27,8 +25,11 @@ #define ASSETS_DIR "/cleardns/assets/" #define ADGUARD_DIR "/cleardns/adguard/" -#define UPDATE_CRON "0 4 * * *" -#define ASSETS_PKG "/assets.tar.xz" +#define ADGUARD_USER "admin" +#define ADGUARD_PASSWD "cleardns" + +#define UPDATE_CRON "0 4 * * *" +#define ASSETS_PKG "/assets.tar.xz" #define ASSET_TTL "ttl.txt" #define ASSET_HOSTS "hosts.txt" @@ -36,7 +37,7 @@ #define ASSET_CHINA_IP "china-ip.txt" #define ASSET_CHINA_LIST "chinalist.txt" -#define EXIT_NORMAL 0 +#define EXIT_NORMAL 0 #define EXIT_FORK_ERROR 1 #define EXIT_EXEC_ERROR 2 #define EXIT_WAIT_ERROR 3