From 5e248359959013ff55b372213b1a38657f448cee Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 20 Dec 2007 09:55:05 +0000 Subject: 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 --- res/snmp/agent.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'res/snmp') diff --git a/res/snmp/agent.c b/res/snmp/agent.c index aace4623a..65f0fd434 100644 --- a/res/snmp/agent.c +++ b/res/snmp/agent.c @@ -51,6 +51,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include #include +#include "asterisk/paths.h" /* need ast_config_AST_SOCKET */ #include "asterisk/channel.h" #include "asterisk/logger.h" #include "asterisk/options.h" @@ -71,9 +72,6 @@ int header_simple_table(struct variable *, oid *, size_t *, int, size_t *, Write int register_sysORTable(oid *, size_t, const char *); int unregister_sysORTable(oid *, size_t); -/* Not defined in header files */ -extern char ast_config_AST_SOCKET[]; - /* Forward declaration */ static void init_asterisk_mib(void); -- cgit v1.2.3