[svn-commits] trunk r33421 - in /trunk: pbx/pbx_gtkconsole.c utils/ael_main.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jun 9 21:34:49 MST 2006


Author: russell
Date: Fri Jun  9 23:34:48 2006
New Revision: 33421

URL: http://svn.digium.com/view/asterisk?rev=33421&view=rev
Log:
convert a few more uses of AST_CONFIG_MAX_PATH to use PATH_MAX

Modified:
    trunk/pbx/pbx_gtkconsole.c
    trunk/utils/ael_main.c

Modified: trunk/pbx/pbx_gtkconsole.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_gtkconsole.c?rev=33421&r1=33420&r2=33421&view=diff
==============================================================================
--- trunk/pbx/pbx_gtkconsole.c (original)
+++ trunk/pbx/pbx_gtkconsole.c Fri Jun  9 23:34:48 2006
@@ -240,7 +240,7 @@
 
 static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs)
 {
-	char tmp[AST_CONFIG_MAX_PATH];
+	char tmp[PATH_MAX];
 	char *module = gtk_file_selection_get_filename(fs);
 	char buf[256];
 	snprintf(tmp, sizeof(tmp), "%s/", ast_config_AST_MODULE_DIR);
@@ -260,7 +260,7 @@
 
 static void add_module(void)
 {
-	char tmp[AST_CONFIG_MAX_PATH];
+	char tmp[PATH_MAX];
 	GtkWidget *filew;
 	snprintf(tmp, sizeof(tmp), "%s/*.so", ast_config_AST_MODULE_DIR);
 	filew = gtk_file_selection_new("Load Module");

Modified: trunk/utils/ael_main.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/ael_main.c?rev=33421&r1=33420&r2=33421&view=diff
==============================================================================
--- trunk/utils/ael_main.c (original)
+++ trunk/utils/ael_main.c Fri Jun  9 23:34:48 2006
@@ -18,12 +18,12 @@
 #include "asterisk/module.h"
 #include "asterisk/ael_structs.h"
 
-#define AST_CONFIG_MAX_PATH 255
+#define PATH_MAX 255
 
 int conts=0, extens=0, priors=0;
 char last_exten[18000];
-char ast_config_AST_CONFIG_DIR[AST_CONFIG_MAX_PATH];
-char ast_config_AST_VAR_DIR[AST_CONFIG_MAX_PATH];
+char ast_config_AST_CONFIG_DIR[PATH_MAX];
+char ast_config_AST_VAR_DIR[PATH_MAX];
 
 void ast_add_profile(void);
 void ast_cli_register_multiple(void);



More information about the svn-commits mailing list