diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-07 15:02:53 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-07 15:02:53 +0000 |
commit | 43199660731013d59b63144420a44dc4e9734ffd (patch) | |
tree | 395f05e092ae201caccb6a48d5e25b74ce47a45c | |
parent | 8b5c3fa4012982be6ac81831e61f918490ddfda0 (diff) |
Change recent patch to not use a hard coded path inside of a .c file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3743 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | asterisk.c | 2 | ||||
-rwxr-xr-x | asterisk.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c index 00f22010d..9c77e1527 100755 --- a/asterisk.c +++ b/asterisk.c @@ -80,7 +80,7 @@ int option_cache_record_files = 0; int option_overrideconfig = 0; int option_reconnect = 0; int fully_booted = 0; -char record_cache_dir[AST_CACHE_DIR_LEN] = "/var/spool/asterisk/tmp"; +char record_cache_dir[AST_CACHE_DIR_LEN] = AST_TMP_DIR; static int ast_socket = -1; /* UNIX Socket for allowing remote control */ static int ast_consock = -1; /* UNIX Socket for controlling another asterisk */ diff --git a/asterisk.h b/asterisk.h index 1ceb13c77..08fc295d5 100755 --- a/asterisk.h +++ b/asterisk.h @@ -28,6 +28,7 @@ #define AST_AGI_DIR ASTAGIDIR #define AST_KEY_DIR ASTVARLIBDIR "/keys" #define AST_DB ASTVARLIBDIR "/astdb" +#define AST_TMP_DIR ASTSPOOLDIR "/tmp" #define AST_CONFIG_FILE ASTCONFPATH |