diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-12-20 09:55:05 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-12-20 09:55:05 +0000 |
commit | 5e248359959013ff55b372213b1a38657f448cee (patch) | |
tree | 0d6c0aea4374306de8f0b0397b8c7138771c6870 /utils/extconf.c | |
parent | c848e480c91275249e1db86fe8f54ee18fa233c6 (diff) |
modify http://svn.digium.com/view/asterisk?view=rev&rev=93603
so that paths and filename are writable by asterisk.c without
causing segfaults.
This involves defining the variables as const char *,
and having them point to as static, writable buffer
defined in asterisk.c
On passing, fix some errors in using these variables
in some files in utils/ , and in res/snmp/agent.c
which was redefining a variable without using paths.h
(not applicable to 1.4)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils/extconf.c')
-rw-r--r-- | utils/extconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/extconf.c b/utils/extconf.c index 4621e345b..a64258cd9 100644 --- a/utils/extconf.c +++ b/utils/extconf.c @@ -25,6 +25,7 @@ */ #include "asterisk/compat.h" +#include "asterisk/paths.h" /* we use AST_CONFIG_DIR */ #include <errno.h> #include <time.h> @@ -53,7 +54,6 @@ # include <glob.h> #endif -static const char ast_config_AST_CONFIG_DIR[PATH_MAX] = {"/etc/asterisk"}; #define AST_API_MODULE 1 /* gimme the inline defs! */ struct ast_channel { |