[Asterisk-cvs] asterisk asterisk.c, 1.122, 1.123 asterisk.h, 1.12, 1.13

citats at lists.digium.com citats at lists.digium.com
Tue Sep 7 11:00:13 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk

Modified Files:
	asterisk.c asterisk.h 
Log Message:
Change recent patch to not use a hard coded path inside of a .c file

Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- asterisk.c	7 Sep 2004 14:36:56 -0000	1.122
+++ asterisk.c	7 Sep 2004 15:02:53 -0000	1.123
@@ -80,7 +80,7 @@
 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 */

Index: asterisk.h
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- asterisk.h	17 Jun 2004 01:13:10 -0000	1.12
+++ asterisk.h	7 Sep 2004 15:02:53 -0000	1.13
@@ -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
 




More information about the svn-commits mailing list