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 /include | |
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 'include')
-rw-r--r-- | include/asterisk/paths.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/include/asterisk/paths.h b/include/asterisk/paths.h index f0052e72a..c161c284d 100644 --- a/include/asterisk/paths.h +++ b/include/asterisk/paths.h @@ -18,22 +18,22 @@ #ifndef _ASTERISK_PATHS_H #define _ASTERISK_PATHS_H -extern const char ast_config_AST_CONFIG_DIR[PATH_MAX]; -extern const char ast_config_AST_CONFIG_FILE[PATH_MAX]; -extern const char ast_config_AST_MODULE_DIR[PATH_MAX]; -extern const char ast_config_AST_SPOOL_DIR[PATH_MAX]; -extern const char ast_config_AST_MONITOR_DIR[PATH_MAX]; -extern const char ast_config_AST_VAR_DIR[PATH_MAX]; -extern const char ast_config_AST_DATA_DIR[PATH_MAX]; -extern const char ast_config_AST_LOG_DIR[PATH_MAX]; -extern const char ast_config_AST_AGI_DIR[PATH_MAX]; -extern const char ast_config_AST_DB[PATH_MAX]; -extern const char ast_config_AST_KEY_DIR[PATH_MAX]; -extern const char ast_config_AST_PID[PATH_MAX]; -extern const char ast_config_AST_SOCKET[PATH_MAX]; -extern const char ast_config_AST_RUN_DIR[PATH_MAX]; -extern const char ast_config_AST_RUN_GROUP[PATH_MAX]; -extern const char ast_config_AST_RUN_USER[PATH_MAX]; -extern const char ast_config_AST_SYSTEM_NAME[20]; +extern const char *ast_config_AST_CONFIG_DIR; +extern const char *ast_config_AST_CONFIG_FILE; +extern const char *ast_config_AST_MODULE_DIR; +extern const char *ast_config_AST_SPOOL_DIR; +extern const char *ast_config_AST_MONITOR_DIR; +extern const char *ast_config_AST_VAR_DIR; +extern const char *ast_config_AST_DATA_DIR; +extern const char *ast_config_AST_LOG_DIR; +extern const char *ast_config_AST_AGI_DIR; +extern const char *ast_config_AST_DB; +extern const char *ast_config_AST_KEY_DIR; +extern const char *ast_config_AST_PID; +extern const char *ast_config_AST_SOCKET; +extern const char *ast_config_AST_RUN_DIR; +extern const char *ast_config_AST_RUN_GROUP; +extern const char *ast_config_AST_RUN_USER; +extern const char *ast_config_AST_SYSTEM_NAME; #endif /* _ASTERISK_PATHS_H */ |