[Asterisk-cvs] asterisk/pbx pbx_spool.c,1.4,1.5 pbx_wilcalu.c,1.10,1.11

markster at lists.digium.com markster at lists.digium.com
Wed Jan 28 15:40:44 CST 2004


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv30163/pbx

Modified Files:
	pbx_spool.c pbx_wilcalu.c 
Log Message:
Various minor cleanups (bug #931)


Index: pbx_spool.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_spool.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- pbx_spool.c	1 Oct 2003 21:01:31 -0000	1.4
+++ pbx_spool.c	28 Jan 2004 21:32:48 -0000	1.5
@@ -339,8 +339,7 @@
 	pthread_t thread;
 	pthread_attr_t attr;
 	snprintf((char *)qdir,sizeof(qdir)-1,"%s/%s",(char *)ast_config_AST_SPOOL_DIR,"outgoing");
-printf("%s\n",qdir);
-    	if (mkdir(qdir, 0700) && (errno != EEXIST)) {
+	if (mkdir(qdir, 0700) && (errno != EEXIST)) {
 		ast_log(LOG_WARNING, "Unable to create queue directory %s -- outgoing spool disabled\n", qdir);
 		return 0;
 	}

Index: pbx_wilcalu.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_wilcalu.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- pbx_wilcalu.c	29 Sep 2003 21:35:19 -0000	1.10
+++ pbx_wilcalu.c	28 Jan 2004 21:32:48 -0000	1.11
@@ -24,6 +24,7 @@
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
 #include <asterisk/translate.h>
+#include <asterisk/options.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
@@ -62,7 +63,8 @@
 	int flags = fcntl(fd, F_GETFL);
 	fd_set fds;
 	fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
-	ast_log(LOG_DEBUG, "Entered Wil-Calu fd=%d\n",fd);
+	if (option_debug)
+		ast_log(LOG_DEBUG, "Entered Wil-Calu fd=%d\n",fd);
 	if(fd<0) {
 		ast_log(LOG_WARNING, "Autodial: Unable to open file\n");
 		pthread_exit(NULL);




More information about the svn-commits mailing list