diff options
author | Mark Spencer <markster@digium.com> | 2003-02-04 15:48:42 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-02-04 15:48:42 +0000 |
commit | 6315850d110469cd238d4118eb7af46e009fdc10 (patch) | |
tree | 517ee94a20886f04c78a05a553831f5b081fed76 /apps/app_adsiprog.c | |
parent | 8dd7713d217cd54321e34abcce60e0aad269dd4b (diff) |
Version 0.3.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_adsiprog.c')
-rwxr-xr-x | apps/app_adsiprog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c index 531b2c423..4df6414eb 100755 --- a/apps/app_adsiprog.c +++ b/apps/app_adsiprog.c @@ -24,10 +24,13 @@ #include <string.h> #include <stdlib.h> #include <ctype.h> +#include <stdio.h> +#include <errno.h> #include <pthread.h> #include "../asterisk.h" +#include "../astconf.h" static char *tdesc = "Asterisk ADSI Programming Application"; @@ -1321,7 +1324,7 @@ static struct adsi_script *compile_script(char *script) if (script[0] == '/') strncpy(fn, script, sizeof(fn) - 1); else - snprintf(fn, sizeof(fn), "%s/%s", AST_CONFIG_DIR, script); + snprintf(fn, sizeof(fn), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, script); f = fopen(fn, "r"); if (!f) { ast_log(LOG_WARNING, "Can't open file '%s'\n", fn); |