[asterisk-commits] kmoore: trunk r360190 - in /trunk/main: ./ stdtime/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 22 14:51:22 CDT 2012


Author: kmoore
Date: Thu Mar 22 14:51:16 2012
New Revision: 360190

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360190
Log:
Kill off red blobs in most of main/*

Everything still compiled after making these changes, so I assume these
whitespace-only changes didn't break anything (and shouldn't have).

Modified:
    trunk/main/app.c
    trunk/main/asterisk.c
    trunk/main/astmm.c
    trunk/main/audiohook.c
    trunk/main/autoservice.c
    trunk/main/callerid.c
    trunk/main/cel.c
    trunk/main/channel.c
    trunk/main/chanvars.c
    trunk/main/cli.c
    trunk/main/config.c
    trunk/main/cygload.c
    trunk/main/devicestate.c
    trunk/main/dial.c
    trunk/main/dns.c
    trunk/main/dnsmgr.c
    trunk/main/dsp.c
    trunk/main/ecdisa.h
    trunk/main/enum.c
    trunk/main/event.c
    trunk/main/features.c
    trunk/main/file.c
    trunk/main/fixedjitterbuf.c
    trunk/main/fixedjitterbuf.h
    trunk/main/frame.c
    trunk/main/fskmodem_float.c
    trunk/main/fskmodem_int.c
    trunk/main/image.c
    trunk/main/indications.c
    trunk/main/io.c
    trunk/main/jitterbuf.c
    trunk/main/loader.c
    trunk/main/lock.c
    trunk/main/logger.c
    trunk/main/manager.c
    trunk/main/md5.c
    trunk/main/message.c
    trunk/main/netsock.c
    trunk/main/pbx.c
    trunk/main/plc.c
    trunk/main/privacy.c
    trunk/main/rtp_engine.c
    trunk/main/say.c
    trunk/main/sched.c
    trunk/main/sha1.c
    trunk/main/slinfactory.c
    trunk/main/srv.c
    trunk/main/stdtime/localtime.c
    trunk/main/stdtime/test.c
    trunk/main/strcompat.c
    trunk/main/taskprocessor.c
    trunk/main/tdd.c
    trunk/main/term.c
    trunk/main/timing.c
    trunk/main/translate.c
    trunk/main/udptl.c
    trunk/main/ulaw.c
    trunk/main/utils.c
    trunk/main/xmldoc.c

Modified: trunk/main/app.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/app.c?view=diff&rev=360190&r1=360189&r2=360190
==============================================================================
--- trunk/main/app.c (original)
+++ trunk/main/app.c Thu Mar 22 14:51:16 2012
@@ -168,7 +168,7 @@
  * \param prompt The file to stream to the channel
  * \param s The string to read in to.  Must be at least the size of your length
  * \param maxlen How many digits to read (maximum)
- * \param timeout set timeout to 0 for "standard" timeouts. Set timeout to -1 for 
+ * \param timeout set timeout to 0 for "standard" timeouts. Set timeout to -1 for
  *      "ludicrous time" (essentially never times out) */
 enum ast_getdata_result ast_app_getdata(struct ast_channel *c, const char *prompt, char *s, int maxlen, int timeout)
 {
@@ -1605,7 +1605,7 @@
 	return r;
 }
 
-int ast_record_review(struct ast_channel *chan, const char *playfile, const char *recordfile, int maxtime, const char *fmt, int *duration, const char *path) 
+int ast_record_review(struct ast_channel *chan, const char *playfile, const char *recordfile, int maxtime, const char *fmt, int *duration, const char *path)
 {
 	int silencethreshold;
 	int maxsilence = 0;

Modified: trunk/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/asterisk.c?view=diff&rev=360190&r1=360189&r2=360190
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Thu Mar 22 14:51:16 2012
@@ -23,18 +23,18 @@
  *
  * \par Developer Documentation for Asterisk
  *
- * This is the main developer documentation for Asterisk. It is 
- * generated by running "make progdocs" from the Asterisk source tree.  
+ * This is the main developer documentation for Asterisk. It is
+ * generated by running "make progdocs" from the Asterisk source tree.
  *
- * In addition to the information available on the Asterisk source code, 
- * please see the appendices for information on coding guidelines, 
+ * In addition to the information available on the Asterisk source code,
+ * please see the appendices for information on coding guidelines,
  * release management, commit policies, and more.
  *
  * \arg \ref AsteriskArchitecture
  *
  * \par Additional documentation
  * \arg \ref Licensing
- * \arg \ref DevDoc 
+ * \arg \ref DevDoc
  * \arg \ref ConfigFiles
  *
  * \section copyright Copyright and Author
@@ -56,7 +56,7 @@
 /*! \file
   \brief Top level source file for Asterisk  - the Open Source PBX. Implementation
   of PBX core functions and CLI interface.
-  
+
  */
 
 #include "asterisk.h"
@@ -170,7 +170,7 @@
 /*! \defgroup main_options Main Configuration Options
  * \brief Main configuration options from asterisk.conf or OS command line on starting Asterisk.
  * \arg \ref Config_ast "asterisk.conf"
- * \note Some of them can be changed in the CLI 
+ * \note Some of them can be changed in the CLI
  */
 /*! @{ */
 
@@ -323,7 +323,7 @@
 	work = ast_strdupa(version);
 	work = ast_strip(ast_strip_quoted(work, "$", "$"));
 	version_length = strlen(work) + 1;
-	
+
 	if (!(new = ast_calloc(1, sizeof(*new) + version_length)))
 		return;
 
@@ -385,8 +385,8 @@
 	if (iterator)
 		return iterator->version;
 	return NULL;
-}      
-       
+}
+
 
 
 struct thread_list_t {
@@ -399,7 +399,7 @@
 static AST_RWLIST_HEAD_STATIC(thread_list, thread_list_t);
 
 void ast_register_thread(char *name)
-{ 
+{
 	struct thread_list_t *new = ast_calloc(1, sizeof(*new));
 
 	if (!new)
@@ -459,7 +459,7 @@
 	else
 		ast_cli(a->fd, "  Maximum calls:               Not set\n");
 	if (option_maxfiles)
-		ast_cli(a->fd, "  Maximum open file handles:   %d\n", option_maxfiles); 
+		ast_cli(a->fd, "  Maximum open file handles:   %d\n", option_maxfiles);
 	else
 		ast_cli(a->fd, "  Maximum open file handles:   Not set\n");
 	ast_cli(a->fd, "  Verbosity:                   %d\n", option_verbose);
@@ -522,7 +522,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core show threads";
-		e->usage = 
+		e->usage =
 			"Usage: core show threads\n"
 			"       List threads currently active in the system.\n";
 		return NULL;
@@ -535,7 +535,7 @@
 		ast_cli(a->fd, "%p %d %s\n", (void *)cur->id, cur->lwp, cur->name);
 		count++;
 	}
-        AST_RWLIST_UNLOCK(&thread_list);
+	AST_RWLIST_UNLOCK(&thread_list);
 	ast_cli(a->fd, "%d threads listed.\n", count);
 	return CLI_SUCCESS;
 }
@@ -754,7 +754,7 @@
 #elif defined(linux)
 static __inline uint64_t
 rdtsc(void)
-{ 
+{
 	uint64_t rv;
 
 	__asm __volatile(".byte 0x0f, 0x31" : "=A" (rv));
@@ -877,7 +877,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core show file version [like]";
-		e->usage = 
+		e->usage =
 			"Usage: core show file version [like <pattern>]\n"
 			"       Lists the revision numbers of the files used to build this copy of Asterisk.\n"
 			"       Optional regular expression pattern is used to filter the file list.\n";
@@ -954,7 +954,7 @@
 
 	ae->func = func;
 
-	ast_unregister_atexit(func);	
+	ast_unregister_atexit(func);
 
 	AST_RWLIST_WRLOCK(&atexits);
 	AST_RWLIST_INSERT_HEAD(&atexits, ae, list);
@@ -1056,7 +1056,7 @@
 	pid = fork();
 #else
 	pid = vfork();
-#endif	
+#endif
 
 	if (pid == 0) {
 #ifdef HAVE_CAP
@@ -1082,7 +1082,7 @@
 			if (res > -1) {
 				res = WIFEXITED(status) ? WEXITSTATUS(status) : -1;
 				break;
-			} else if (errno != EINTR) 
+			} else if (errno != EINTR)
 				break;
 		}
 	} else {
@@ -1149,7 +1149,7 @@
 		if (consoles[x].mute)
 			continue;
 		if (consoles[x].fd > -1) {
-			if (!consoles[x].levels[level]) 
+			if (!consoles[x].levels[level])
 				fdprint(consoles[x].p[1], string);
 		}
 	}
@@ -1173,7 +1173,7 @@
 {
 	int x;
 	for (x = 0; x < AST_MAX_CONNECTS; x++) {
-		if (consoles[x].fd > -1) 
+		if (consoles[x].fd > -1)
 			fdprint(consoles[x].p[1], string);
 	}
 }
@@ -1262,7 +1262,7 @@
 	char tmp[512];
 	int res;
 	struct pollfd fds[2];
-	
+
 	if (gethostname(hostname, sizeof(hostname)-1))
 		ast_copy_string(hostname, "<Unknown>", sizeof(hostname));
 	snprintf(tmp, sizeof(tmp), "%s/%ld/%s\n", hostname, (long)ast_mainpid, ast_get_version());
@@ -1311,7 +1311,7 @@
 	close(con->p[0]);
 	close(con->p[1]);
 	con->fd = -1;
-	
+
 	return NULL;
 }
 
@@ -1400,14 +1400,14 @@
 	uid_t uid = -1;
 	gid_t gid = -1;
 
-	for (x = 0; x < AST_MAX_CONNECTS; x++)	
+	for (x = 0; x < AST_MAX_CONNECTS; x++)
 		consoles[x].fd = -1;
 	unlink(ast_config_AST_SOCKET);
 	ast_socket = socket(PF_LOCAL, SOCK_STREAM, 0);
 	if (ast_socket < 0) {
 		ast_log(LOG_WARNING, "Unable to create control socket: %s\n", strerror(errno));
 		return -1;
-	}		
+	}
 	memset(&sunaddr, 0, sizeof(sunaddr));
 	sunaddr.sun_family = AF_LOCAL;
 	ast_copy_string(sunaddr.sun_path, ast_config_AST_SOCKET, sizeof(sunaddr.sun_path));
@@ -1438,7 +1438,7 @@
 		else
 			uid = pw->pw_uid;
 	}
-		
+
 	if (!ast_strlen_zero(ast_config_AST_CTL_GROUP)) {
 		struct group *grp;
 		if ((grp = getgrnam(ast_config_AST_CTL_GROUP)) == NULL)
@@ -1486,8 +1486,8 @@
 /*! \brief Urgent handler
 
  Called by soft_hangup to interrupt the poll, read, or other
- system call.  We don't actually need to do anything though.  
- Remember: Cannot EVER ast_log from within a signal handler 
+ system call.  We don't actually need to do anything though.
+ Remember: Cannot EVER ast_log from within a signal handler
  */
 static void _urg_handler(int num)
 {
@@ -1529,7 +1529,7 @@
 	 */
 	for (n = 0; wait4(-1, &status, WNOHANG, NULL) > 0; n++)
 		;
-	if (n == 0 && option_debug)	
+	if (n == 0 && option_debug)
 		printf("Huh?  Child handler, but nobody there?\n");
 	errno = save_errno;
 }
@@ -1543,22 +1543,22 @@
 static void set_ulimit(int value)
 {
 	struct rlimit l = {0, 0};
-	
+
 	if (value <= 0) {
 		ast_log(LOG_WARNING, "Unable to change max files open to invalid value %i\n",value);
 		return;
 	}
-	
+
 	l.rlim_cur = value;
 	l.rlim_max = value;
-	
+
 	if (setrlimit(RLIMIT_NOFILE, &l)) {
 		ast_log(LOG_WARNING, "Unable to disable core size resource limit: %s\n",strerror(errno));
 		return;
 	}
-	
+
 	ast_log(LOG_NOTICE, "Setting max files open to %d\n",value);
-	
+
 	return;
 }
 
@@ -1582,7 +1582,7 @@
 	struct sched_param sched;
 	memset(&sched, 0, sizeof(sched));
 #ifdef __linux__
-	if (pri) {  
+	if (pri) {
 		sched.sched_priority = 10;
 		if (sched_setscheduler(0, SCHED_RR, &sched)) {
 			ast_log(LOG_WARNING, "Unable to set high priority\n");
@@ -1614,7 +1614,7 @@
 	struct ast_atexit *ae;
 	AST_RWLIST_RDLOCK(&atexits);
 	AST_RWLIST_TRAVERSE(&atexits, ae, list) {
-		if (ae->func) 
+		if (ae->func)
 			ae->func();
 	}
 	AST_RWLIST_UNLOCK(&atexits);
@@ -1756,7 +1756,7 @@
 		/* close logger */
 		close_logger();
 
-		/* If there is a consolethread running send it a SIGHUP 
+		/* If there is a consolethread running send it a SIGHUP
 		   so it can execvp, otherwise we can do it ourselves */
 		if ((consolethread != AST_PTHREADT_NULL) && (consolethread != pthread_self())) {
 			pthread_kill(consolethread, SIGHUP);
@@ -1764,7 +1764,7 @@
 			sleep(2);
 		} else
 			execvp(_argv[0], _argv);
-	
+
 	} else {
 		/* close logger */
 		close_logger();
@@ -1846,7 +1846,7 @@
 	while (*s) {
 		if (*s > 32)
 			return 0;
-		s++;  
+		s++;
 	}
 	return 1;
 }
@@ -1865,7 +1865,7 @@
 			ast_safe_system(s+1);
 		else
 			ast_safe_system(getenv("SHELL") ? getenv("SHELL") : "/bin/sh");
-	} else 
+	} else
 		ast_cli_command(STDOUT_FILENO, s);
 }
 
@@ -1925,7 +1925,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core show version";
-		e->usage = 
+		e->usage =
 			"Usage: core show version\n"
 			"       Shows Asterisk version information.\n";
 		return NULL;
@@ -1956,7 +1956,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core stop now";
-		e->usage = 
+		e->usage =
 			"Usage: core stop now\n"
 			"       Shuts down a running Asterisk immediately, hanging up all active calls .\n";
 		return NULL;
@@ -1975,7 +1975,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core stop gracefully";
-		e->usage = 
+		e->usage =
 			"Usage: core stop gracefully\n"
 			"       Causes Asterisk to not accept new calls, and exit when all\n"
 			"       active calls have terminated normally.\n";
@@ -1995,7 +1995,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core stop when convenient";
-		e->usage = 
+		e->usage =
 			"Usage: core stop when convenient\n"
 			"       Causes Asterisk to perform a shutdown when all active calls have ended.\n";
 		return NULL;
@@ -2015,7 +2015,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core restart now";
-		e->usage = 
+		e->usage =
 			"Usage: core restart now\n"
 			"       Causes Asterisk to hangup all calls and exec() itself performing a cold\n"
 			"       restart.\n";
@@ -2035,7 +2035,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core restart gracefully";
-		e->usage = 
+		e->usage =
 			"Usage: core restart gracefully\n"
 			"       Causes Asterisk to stop accepting new calls and exec() itself performing a cold\n"
 			"       restart when all active calls have ended.\n";
@@ -2055,7 +2055,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core restart when convenient";
-		e->usage = 
+		e->usage =
 			"Usage: core restart when convenient\n"
 			"       Causes Asterisk to perform a cold restart when all active calls have ended.\n";
 		return NULL;
@@ -2077,7 +2077,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core abort shutdown";
-		e->usage = 
+		e->usage =
 			"Usage: core abort shutdown\n"
 			"       Causes Asterisk to abort an executing shutdown or restart, and resume normal\n"
 			"       call operations.\n";
@@ -2107,7 +2107,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "!";
-		e->usage = 
+		e->usage =
 			"Usage: !<command>\n"
 			"       Executes a given shell command\n";
 		return NULL;
@@ -2147,7 +2147,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core show warranty";
-		e->usage = 
+		e->usage =
 			"Usage: core show warranty\n"
 			"       Shows the warranty (if any) for this copy of Asterisk.\n";
 		return NULL;
@@ -2184,7 +2184,7 @@
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "core show license";
-		e->usage = 
+		e->usage =
 			"Usage: core show license\n"
 			"       Shows the license(s) for this copy of Asterisk.\n";
 		return NULL;
@@ -2206,7 +2206,7 @@
 	AST_CLI_DEFINE(handle_stop_now, "Shut down Asterisk immediately"),
 	AST_CLI_DEFINE(handle_stop_gracefully, "Gracefully shut down Asterisk"),
 	AST_CLI_DEFINE(handle_stop_when_convenient, "Shut down Asterisk at empty call volume"),
-	AST_CLI_DEFINE(handle_restart_now, "Restart Asterisk immediately"), 
+	AST_CLI_DEFINE(handle_restart_now, "Restart Asterisk immediately"),
 	AST_CLI_DEFINE(handle_restart_gracefully, "Restart Asterisk gracefully"),
 	AST_CLI_DEFINE(handle_restart_when_convenient, "Restart Asterisk at empty call volume"),
 	AST_CLI_DEFINE(show_warranty, "Show the warranty (if any) for this copy of Asterisk"),
@@ -2300,7 +2300,7 @@
 							WELCOME_MESSAGE;
 							if (!ast_opt_mute)
 								fdsend(ast_consock, "logger mute silent");
-							else 
+							else
 								printf("log and verbose output currently muted ('logger mute' to unmute)\n");
 							break;
 						} else
@@ -2487,7 +2487,7 @@
 		ast_str_set(&prompt, 0, "%s", ASTERISK_PROMPT);
 	}
 
-	return ast_str_buffer(prompt);	
+	return ast_str_buffer(prompt);
 }
 
 static char **ast_el_strtoarr(char *buf)
@@ -2619,7 +2619,7 @@
 	len = lf->cursor - ptr;
 
 	if (ast_opt_remote) {
-		snprintf(buf, sizeof(buf), "_COMMAND NUMMATCHES \"%s\" \"%s\"", lf->buffer, ptr); 
+		snprintf(buf, sizeof(buf), "_COMMAND NUMMATCHES \"%s\" \"%s\"", lf->buffer, ptr);
 		fdsend(ast_consock, buf);
 		res = read(ast_consock, buf, sizeof(buf) - 1);
 		buf[res] = '\0';
@@ -2628,19 +2628,19 @@
 		if (nummatches > 0) {
 			char *mbuf;
 			int mlen = 0, maxmbuf = 2048;
-			/* Start with a 2048 byte buffer */			
+			/* Start with a 2048 byte buffer */
 			if (!(mbuf = ast_malloc(maxmbuf))) {
 				lf->cursor[0] = savechr;
 				return (char *)(CC_ERROR);
 			}
-			snprintf(buf, sizeof(buf), "_COMMAND MATCHESARRAY \"%s\" \"%s\"", lf->buffer, ptr); 
+			snprintf(buf, sizeof(buf), "_COMMAND MATCHESARRAY \"%s\" \"%s\"", lf->buffer, ptr);
 			fdsend(ast_consock, buf);
 			res = 0;
 			mbuf[0] = '\0';
 			while (!strstr(mbuf, AST_CLI_COMPLETE_EOF) && res != -1) {
 				if (mlen + 1024 > maxmbuf) {
 					/* Every step increment buffer 1024 bytes */
-					maxmbuf += 1024;					
+					maxmbuf += 1024;
 					if (!(mbuf = ast_realloc(mbuf, maxmbuf))) {
 						lf->cursor[0] = savechr;
 						return (char *)(CC_ERROR);
@@ -2694,7 +2694,7 @@
 				fprintf(stdout, "\n");
 				ast_cli_display_match_list(matches, nummatches, maxlen);
 				retval = CC_REDISPLAY;
-			} else { 
+			} else {
 				el_insertstr(editline," ");
 				retval = CC_REFRESH;
 			}
@@ -2728,7 +2728,7 @@
 	el = el_init("asterisk", stdin, stdout, stderr);
 	el_set(el, EL_PROMPT, cli_prompt);
 
-	el_set(el, EL_EDITMODE, 1);		
+	el_set(el, EL_EDITMODE, 1);
 	el_set(el, EL_EDITOR, editor);
 	el_hist = history_init();
 	if (!el || !el_hist)
@@ -2928,7 +2928,7 @@
 
 	ast_verbose("Connected to Asterisk %s currently running on %s (pid = %d)\n", version, hostname, pid);
 	remotehostname = hostname;
-	if (getenv("HOME")) 
+	if (getenv("HOME"))
 		snprintf(filename, sizeof(filename), "%s/.asterisk_history", getenv("HOME"));
 	if (el_hist == NULL || el == NULL)
 		ast_el_initialize();
@@ -3009,7 +3009,7 @@
 	return 0;
 }
 
-static void ast_readconfig(void) 
+static void ast_readconfig(void)
 {
 	struct ast_config *cfg;
 	struct ast_variable *v;
@@ -3025,14 +3025,14 @@
 		cfg = ast_config_load2(ast_config_AST_CONFIG_FILE, "" /* core, can't reload */, config_flags);
 		if (cfg == CONFIG_STATUS_FILEMISSING || cfg == CONFIG_STATUS_FILEUNCHANGED || cfg == CONFIG_STATUS_FILEINVALID)
 			ast_log(LOG_WARNING, "Unable to open specified master config file '%s', using built-in defaults\n", ast_config_AST_CONFIG_FILE);
-	} else 
+	} else
 		cfg = ast_config_load2(config, "" /* core, can't reload */, config_flags);
 
 	/* init with buildtime config */
 	ast_copy_string(cfg_paths.config_dir, DEFAULT_CONFIG_DIR, sizeof(cfg_paths.config_dir));
 	ast_copy_string(cfg_paths.spool_dir, DEFAULT_SPOOL_DIR, sizeof(cfg_paths.spool_dir));
 	ast_copy_string(cfg_paths.module_dir, DEFAULT_MODULE_DIR, sizeof(cfg_paths.module_dir));
- 	snprintf(cfg_paths.monitor_dir, sizeof(cfg_paths.monitor_dir), "%s/monitor", cfg_paths.spool_dir);
+	snprintf(cfg_paths.monitor_dir, sizeof(cfg_paths.monitor_dir), "%s/monitor", cfg_paths.spool_dir);
 	ast_copy_string(cfg_paths.var_dir, DEFAULT_VAR_DIR, sizeof(cfg_paths.var_dir));
 	ast_copy_string(cfg_paths.data_dir, DEFAULT_DATA_DIR, sizeof(cfg_paths.data_dir));
 	ast_copy_string(cfg_paths.log_dir, DEFAULT_LOG_DIR, sizeof(cfg_paths.log_dir));
@@ -3197,15 +3197,15 @@
 			ast_language_is_prefix = ast_true(v->value);
 		} else if (!strcasecmp(v->name, "defaultlanguage")) {
 			ast_copy_string(defaultlanguage, v->value, MAX_LANGUAGE);
- 		} else if (!strcasecmp(v->name, "lockmode")) {
- 			if (!strcasecmp(v->value, "lockfile")) {
- 				ast_set_lock_type(AST_LOCK_TYPE_LOCKFILE);
- 			} else if (!strcasecmp(v->value, "flock")) {
- 				ast_set_lock_type(AST_LOCK_TYPE_FLOCK);
- 			} else {
+		} else if (!strcasecmp(v->name, "lockmode")) {
+			if (!strcasecmp(v->value, "lockfile")) {
+				ast_set_lock_type(AST_LOCK_TYPE_LOCKFILE);
+			} else if (!strcasecmp(v->value, "flock")) {
+				ast_set_lock_type(AST_LOCK_TYPE_FLOCK);
+			} else {
 				ast_log(LOG_WARNING, "'%s' is not a valid setting for the lockmode option, "
 					"defaulting to 'lockfile'\n", v->value);
- 				ast_set_lock_type(AST_LOCK_TYPE_LOCKFILE);
+				ast_set_lock_type(AST_LOCK_TYPE_LOCKFILE);
 			}
 #if defined(HAVE_SYSINFO)
 		} else if (!strcasecmp(v->name, "minmemfree")) {
@@ -3398,7 +3398,7 @@
 	ast_fd_init();
 	ast_pbx_init();
 
-	if (getenv("HOME")) 
+	if (getenv("HOME"))
 		snprintf(filename, sizeof(filename), "%s/.asterisk_history", getenv("HOME"));
 	/* Check for options */
 	while ((c = getopt(argc, argv, "BC:cde:FfG:ghIiL:M:mnpqRrs:TtU:VvWXx:")) != -1) {
@@ -3524,7 +3524,7 @@
 		WELCOME_MESSAGE;
 	}
 
-	if (ast_opt_console && !option_verbose) 
+	if (ast_opt_console && !option_verbose)
 		ast_verbose("[ Booting...\n");
 
 	/* For remote connections, change the name of the remote connection.
@@ -3750,7 +3750,7 @@
 	/* custom config setup */
 	register_config_cli();
 	read_config_maps();
-	
+
 	if (ast_opt_console) {
 		if (el_hist == NULL || el == NULL)
 			ast_el_initialize();

Modified: trunk/main/astmm.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/astmm.c?view=diff&rev=360190&r1=360189&r2=360190
==============================================================================
--- trunk/main/astmm.c (original)
+++ trunk/main/astmm.c Thu Mar 22 14:51:16 2012
@@ -142,7 +142,7 @@
 	int hash = HASH(ptr);
 	struct ast_region *reg;
 	size_t len = 0;
-	
+
 	ast_mutex_lock(&reglock);
 	for (reg = regions[hash]; reg; reg = reg->next) {
 		if (reg->data == ptr) {
@@ -191,42 +191,42 @@
 		}
 		free(reg);
 	} else {
-		astmm_log("WARNING: Freeing unused memory at %p, in %s of %s, line %d\n",	
+		astmm_log("WARNING: Freeing unused memory at %p, in %s of %s, line %d\n",
 			ptr, func, file, lineno);
 	}
 }
 
-void *__ast_calloc(size_t nmemb, size_t size, const char *file, int lineno, const char *func) 
+void *__ast_calloc(size_t nmemb, size_t size, const char *file, int lineno, const char *func)
 {
 	void *ptr;
 
-	if ((ptr = __ast_alloc_region(size * nmemb, FUNC_CALLOC, file, lineno, func, 0))) 
+	if ((ptr = __ast_alloc_region(size * nmemb, FUNC_CALLOC, file, lineno, func, 0)))
 		memset(ptr, 0, size * nmemb);
 
 	return ptr;
 }
 
-void *__ast_calloc_cache(size_t nmemb, size_t size, const char *file, int lineno, const char *func) 
+void *__ast_calloc_cache(size_t nmemb, size_t size, const char *file, int lineno, const char *func)
 {
 	void *ptr;
 
-	if ((ptr = __ast_alloc_region(size * nmemb, FUNC_CALLOC, file, lineno, func, 1))) 
+	if ((ptr = __ast_alloc_region(size * nmemb, FUNC_CALLOC, file, lineno, func, 1)))
 		memset(ptr, 0, size * nmemb);
 
 	return ptr;
 }
 
-void *__ast_malloc(size_t size, const char *file, int lineno, const char *func) 
+void *__ast_malloc(size_t size, const char *file, int lineno, const char *func)
 {
 	return __ast_alloc_region(size, FUNC_MALLOC, file, lineno, func, 0);
 }
 
-void __ast_free(void *ptr, const char *file, int lineno, const char *func) 
+void __ast_free(void *ptr, const char *file, int lineno, const char *func)
 {
 	__ast_free_region(ptr, file, lineno, func);
 }
 
-void *__ast_realloc(void *ptr, size_t size, const char *file, int lineno, const char *func) 
+void *__ast_realloc(void *ptr, size_t size, const char *file, int lineno, const char *func)
 {
 	void *tmp;
 	size_t len = 0;
@@ -246,11 +246,11 @@
 		memcpy(tmp, ptr, len);
 		__ast_free_region(ptr, file, lineno, func);
 	}
-	
+
 	return tmp;
 }
 
-char *__ast_strdup(const char *s, const char *file, int lineno, const char *func) 
+char *__ast_strdup(const char *s, const char *file, int lineno, const char *func)
 {
 	size_t len;
 	void *ptr;
@@ -265,7 +265,7 @@
 	return ptr;
 }
 
-char *__ast_strndup(const char *s, size_t n, const char *file, int lineno, const char *func) 
+char *__ast_strndup(const char *s, size_t n, const char *file, int lineno, const char *func)
 {
 	size_t len;
 	void *ptr;
@@ -303,7 +303,7 @@
 	return size;
 }
 
-int __ast_vasprintf(char **strp, const char *fmt, va_list ap, const char *file, int lineno, const char *func) 
+int __ast_vasprintf(char **strp, const char *fmt, va_list ap, const char *file, int lineno, const char *func)
 {
 	int size;
 	va_list ap2;
@@ -355,7 +355,7 @@
 				fence = (unsigned int *)(reg->data + reg->len);
 				if (reg->fence != FENCE_MAGIC) {
 					astmm_log("WARNING: Low fence violation at %p, "
-						"in %s of %s, line %d\n", reg->data, 
+						"in %s of %s, line %d\n", reg->data,
 						reg->func, reg->file, reg->lineno);
 				}
 				if (get_unaligned_uint32(fence) != FENCE_MAGIC) {
@@ -364,8 +364,8 @@
 				}
 			}
 			if (!fn || !strcasecmp(fn, reg->file)) {
-				ast_cli(a->fd, "%10d bytes allocated%s in %20s at line %5d of %s\n", 
-					(int) reg->len, reg->cache ? " (cache)" : "", 
+				ast_cli(a->fd, "%10d bytes allocated%s in %20s at line %5d of %s\n",
+					(int) reg->len, reg->cache ? " (cache)" : "",
 					reg->func, reg->lineno, reg->file);
 				len += reg->len;
 				if (reg->cache)
@@ -375,12 +375,12 @@
 		}
 	}
 	ast_mutex_unlock(&reglock);
-	
+
 	if (cache_len)
 		ast_cli(a->fd, "%d bytes allocated (%d in caches) in %d allocations\n", len, cache_len, count);
 	else
 		ast_cli(a->fd, "%d bytes allocated in %d allocations\n", len, count);
-	
+
 	return CLI_SUCCESS;
 }
 
@@ -399,7 +399,7 @@
 		int count;
 		struct file_summary *next;
 	} *list = NULL, *cur;
-	
+
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "memory show summary";
@@ -412,7 +412,7 @@
 		return NULL;
 	}
 
-	if (a->argc > 3) 
+	if (a->argc > 3)
 		fn = a->argv[3];
 
 	ast_mutex_lock(&reglock);
@@ -440,7 +440,7 @@
 		}
 	}
 	ast_mutex_unlock(&reglock);
-	
+
 	/* Dump the whole list */
 	for (cur = list; cur; cur = cur->next) {
 		len += cur->len;
@@ -448,18 +448,18 @@
 		count += cur->count;
 		if (cur->cache_len) {
 			if (fn) {
-				ast_cli(a->fd, "%10d bytes (%10d cache) in %d allocations in function '%s' of '%s'\n", 
+				ast_cli(a->fd, "%10d bytes (%10d cache) in %d allocations in function '%s' of '%s'\n",
 					cur->len, cur->cache_len, cur->count, cur->fn, fn);
 			} else {
-				ast_cli(a->fd, "%10d bytes (%10d cache) in %d allocations in file '%s'\n", 
+				ast_cli(a->fd, "%10d bytes (%10d cache) in %d allocations in file '%s'\n",
 					cur->len, cur->cache_len, cur->count, cur->fn);
 			}
 		} else {
 			if (fn) {
-				ast_cli(a->fd, "%10d bytes in %d allocations in function '%s' of '%s'\n", 
+				ast_cli(a->fd, "%10d bytes in %d allocations in function '%s' of '%s'\n",
 					cur->len, cur->count, cur->fn, fn);
 			} else {
-				ast_cli(a->fd, "%10d bytes in %d allocations in file '%s'\n", 
+				ast_cli(a->fd, "%10d bytes in %d allocations in file '%s'\n",
 					cur->len, cur->count, cur->fn);
 			}
 		}
@@ -488,11 +488,11 @@
 	}
 
 	ast_cli_register_multiple(cli_memory, ARRAY_LEN(cli_memory));
-	
+
 	snprintf(filename, sizeof(filename), "%s/mmlog", ast_config_AST_LOG_DIR);
-	
+
 	ast_verb(1, "Asterisk Malloc Debugger Started (see %s))\n", filename);
-	
+
 	if ((mmlog = fopen(filename, "a+"))) {
 		fprintf(mmlog, "%ld - New session\n", (long)time(NULL));
 		fflush(mmlog);

Modified: trunk/main/audiohook.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/audiohook.c?view=diff&rev=360190&r1=360189&r2=360190
==============================================================================
--- trunk/main/audiohook.c (original)
+++ trunk/main/audiohook.c Thu Mar 22 14:51:16 2012
@@ -226,7 +226,7 @@
 	/* Ensure the factory is able to give us the samples we want */
 	if (samples > ast_slinfactory_available(factory))
 		return NULL;
-	
+
 	/* Read data in from factory */
 	if (!ast_slinfactory_read(factory, buf, samples))
 		return NULL;
@@ -356,10 +356,10 @@
 		samples_converted = samples * (ast_format_rate(format) / (float) audiohook->hook_internal_samp_rate);
 	}
 
-	if (!(read_frame = (direction == AST_AUDIOHOOK_DIRECTION_BOTH ? 
-		audiohook_read_frame_both(audiohook, samples_converted, read_reference, write_reference) : 
-		audiohook_read_frame_single(audiohook, samples_converted, direction)))) { 
-		return NULL; 
+	if (!(read_frame = (direction == AST_AUDIOHOOK_DIRECTION_BOTH ?
+		audiohook_read_frame_both(audiohook, samples_converted, read_reference, write_reference) :
+		audiohook_read_frame_single(audiohook, samples_converted, direction)))) {
+		return NULL;
 	}
 
 	/* If they don't want signed linear back out, we'll have to send it through the translation path */
@@ -536,7 +536,7 @@
 		if (audiohook_list->out_translate[i].trans_pvt)
 			ast_translator_free_path(audiohook_list->out_translate[i].trans_pvt);
 	}
-	
+
 	/* Free ourselves */
 	ast_free(audiohook_list);
 
@@ -770,7 +770,7 @@
  *         because no translation to SLINEAR audio was required.
  * Part_3: Translate end_frame's audio back into the format of start frame if necessary.  This
  *         is only necessary if manipulation of middle_frame occurred.
- *         
+ *
  * \param chan Channel that the list is coming off of
  * \param audiohook_list List of audiohooks
  * \param direction Direction frame is coming in from
@@ -929,9 +929,9 @@
 	wait = ast_tvadd(ast_tvnow(), ast_samp2tv(50000, 1000));
 	ts.tv_sec = wait.tv_sec;
 	ts.tv_nsec = wait.tv_usec * 1000;
-	
+
 	ast_cond_timedwait(&audiohook->trigger, &audiohook->lock, &ts);
-	
+
 	return;
 }
 

Modified: trunk/main/autoservice.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/autoservice.c?view=diff&rev=360190&r1=360189&r2=360190
==============================================================================
--- trunk/main/autoservice.c (original)
+++ trunk/main/autoservice.c Thu Mar 22 14:51:16 2012
@@ -21,7 +21,7 @@
  *
  * \brief Automatic channel service routines
  *
- * \author Mark Spencer <markster at digium.com> 
+ * \author Mark Spencer <markster at digium.com>
  * \author Russell Bryant <russell at digium.com>
  */
 
@@ -52,7 +52,7 @@
 struct asent {
 	struct ast_channel *chan;
 	/*! This gets incremented each time autoservice gets started on the same
-	 *  channel.  It will ensure that it doesn't actually get stopped until 
+	 *  channel.  It will ensure that it doesn't actually get stopped until
 	 *  it gets stopped for the last time. */
 	unsigned int use_count;
 	unsigned int orig_end_dtmf_flag:1;
@@ -141,11 +141,11 @@
 		if (defer_frame) {
 			for (i = 0; i < x; i++) {
 				struct ast_frame *dup_f;
-				
+
 				if (mons[i] != chan) {
 					continue;
 				}
-				
+
 				if (defer_frame != f) {
 					if ((dup_f = ast_frdup(defer_frame))) {
 						AST_LIST_INSERT_HEAD(&ents[i]->deferred_frames, dup_f, frame_list);
@@ -158,7 +158,7 @@
 						AST_LIST_INSERT_HEAD(&ents[i]->deferred_frames, dup_f, frame_list);
 					}
 				}
-				
+
 				break;
 			}
 		} else if (f) {
@@ -192,7 +192,7 @@
 
 	if (!(as = ast_calloc(1, sizeof(*as))))
 		return -1;
-	
+
 	/* New entry created */
 	as->chan = chan;
 	as->use_count = 1;
@@ -247,7 +247,7 @@
 
 	/* Find the entry, but do not free it because it still can be in the
 	   autoservice thread array */
-	AST_LIST_TRAVERSE_SAFE_BEGIN(&aslist, as, list) {	
+	AST_LIST_TRAVERSE_SAFE_BEGIN(&aslist, as, list) {
 		if (as->chan == chan) {
 			as->use_count--;
 			if (as->use_count < 1) {

Modified: trunk/main/callerid.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/callerid.c?view=diff&rev=360190&r1=360189&r2=360190
==============================================================================
--- trunk/main/callerid.c (original)
+++ trunk/main/callerid.c Thu Mar 22 14:51:16 2012
@@ -18,9 +18,9 @@
 
 /*! \file
  *
- * \brief CallerID Generation support 
+ * \brief CallerID Generation support
  *
- * \author Mark Spencer <markster at digium.com> 
+ * \author Mark Spencer <markster at digium.com>
  */
 
 #include "asterisk.h"
@@ -53,7 +53,7 @@
 	int sawflag;
 	int len;
 
-	int skipflag; 
+	int skipflag;
 	unsigned short crc;
 };
 
@@ -81,14 +81,14 @@
 		*cr1 = t;
 		t = 2.0 - (*cr1 * *cr1 + *ci1 * *ci1);
 		*cr1 *= t;
-		*ci1 *= t; 	
+		*ci1 *= t;
 
 		t = *cr2 * ddr2 - *ci2 * ddi2;
 		*ci2 = *cr2 * ddi2 + *ci2 * ddr2;
 		*cr2 = t;
 		t = 2.0 - (*cr2 * *cr2 + *ci2 * *ci2);
 		*cr2 *= t;
-		*ci2 *= t; 	
+		*ci2 *= t;
 		buf[x] = AST_LIN2X((*cr1 + *cr2) * 2048.0);
 	}
 }
@@ -103,7 +103,7 @@
 		*cr1 = t;
 		t = 2.0 - (*cr1 * *cr1 + *ci1 * *ci1);
 		*cr1 *= t;
-		*ci1 *= t; 	
+		*ci1 *= t;
 		buf[x] = AST_LIN2X(*cr1 * 8192.0);
 	}
 }
@@ -129,12 +129,12 @@
 
 	if ((cid = ast_calloc(1, sizeof(*cid)))) {
 #ifdef INTEGER_CALLERID
-		cid->fskd.ispb = 7;          	/* 1200 baud */	
+		cid->fskd.ispb = 7;          	/* 1200 baud */
 		/* Set up for 1200 / 8000 freq *32 to allow ints */
 		cid->fskd.pllispb  = (int)(8000 * 32  / 1200);
 		cid->fskd.pllids   = cid->fskd.pllispb/32;
 		cid->fskd.pllispb2 = cid->fskd.pllispb/2;
-		
+
 		cid->fskd.icont = 0;           /* PLL REset */
 		/* cid->fskd.hdlc = 0; */     	/* Async */
 		cid->fskd.nbit = 8;           	/* 8 bits */
@@ -208,14 +208,14 @@
 		*flags = CID_UNKNOWN_NUMBER;
 		return;
 	}
-	
+
 	/* Detect protocol and special types */
 	if (cidstring[0] == 'B') {
 		/* Handle special codes */
 		code = atoi(&cidstring[1]);
 		if (code == 0)
 			*flags = CID_UNKNOWN_NUMBER;
-		else if (code == 10) 
+		else if (code == 10)
 			*flags = CID_PRIVATE_NUMBER;
 		else
 			ast_debug(1, "Unknown DTMF code %d\n", code);
@@ -286,7 +286,7 @@
 	for (i = 0; i < CHAR_BIT; i++) {
 		org <<= 1;
 		dst >>= 1;
-		if (org & 0x100) 
+		if (org & 0x100)
 			dst |= 0x80;
 	}
 	data = (unsigned char) dst;
@@ -297,7 +297,7 @@
 		else
 			crc <<= 1 ;
 	}
-   	return crc;
+	return crc;
 }
 
 int callerid_feed_jp(struct callerid_state *cid, unsigned char *ubuf, int len, struct ast_format *codec)
@@ -315,7 +315,7 @@
 	memcpy(buf, cid->oldstuff, cid->oldlen);
 	mylen += cid->oldlen / 2;
 
-	for (x = 0; x < len; x++) 
+	for (x = 0; x < len; x++)
 		buf[x+cid->oldlen/2] = AST_XLAW(ubuf[x]);
 
 	while (mylen >= 160) {
@@ -367,24 +367,24 @@
 				}
 				break;
 			case 1: /* SOH */
-				if (b == 0x01) 
+				if (b == 0x01)
 					cid->sawflag = 2;
 				break ;
 			case 2: /* HEADER */
-				if (b == 0x07) 
+				if (b == 0x07)
 					cid->sawflag = 3;
 				break;
 			case 3: /* STX */
-				if (b == 0x02) 
+				if (b == 0x02)
 					cid->sawflag = 4;
 				break;
 			case 4: /* SERVICE TYPE */
-				if (b == 0x40) 
+				if (b == 0x40)
 					cid->sawflag = 5;
 				break;
 			case 5: /* Frame Length */
 				cid->sawflag = 6;
-				break;	
+				break;
 			case 6: /* NUMBER TYPE */
 				cid->sawflag = 7;
 				cid->pos = 0;
@@ -418,7 +418,7 @@
 				if (cid->crc != 0) {
 					ast_log(LOG_WARNING, "crc checksum error\n") ;
 					return -1;
-				} 
+				}
 				/* extract caller id data */
 				for (x = 0; x < cid->pos;) {
 					switch (cid->rawdata[x++]) {
@@ -432,9 +432,9 @@
 						break;
 					case 0x21: /* additional information */
 						/* length */
-						x++; 
+						x++;
 						/* number type */
-						switch (cid->rawdata[x]) { 
+						switch (cid->rawdata[x]) {
 						case 0x00: /* unknown */
 						case 0x01: /* international number */
 						case 0x02: /* domestic number */
@@ -446,11 +446,11 @@
 							ast_debug(2, "cid info:#1=%X\n", cid->rawdata[x]);
 							break ;
 						}
-						x++; 
+						x++;
 						/* numbering plan octed 4 */
-						x++; 
+						x++;
 						/* numbering plan octed 5 */
-						switch (cid->rawdata[x]) { 
+						switch (cid->rawdata[x]) {
 						case 0x00: /* unknown */
 						case 0x01: /* recommendation E.164 ISDN */
 						case 0x03: /* recommendation X.121 */
@@ -462,11 +462,11 @@
 							ast_debug(2, "cid info:#2=%X\n", cid->rawdata[x]);
 							break ;
 						}
-						x++; 
+						x++;
 						break ;
 					case 0x04: /* no callerid reason */
 						/* length */
-						x++; 
+						x++;
 						/* no callerid reason code */
 						switch (cid->rawdata[x]) {
 						case 'P': /* caller id denied by user */
@@ -477,7 +477,7 @@
 							ast_debug(2, "no cid reason:%c\n", cid->rawdata[x]);
 							break ;
 						}
-						x++; 
+						x++;
 						break ;
 					case 0x09: /* dialed number */
 						/* length */
@@ -534,7 +534,7 @@
 		cid->oldlen = mylen * 2;
 	} else
 		cid->oldlen = 0;
-	
+
 	return 0;
 }
 
@@ -553,7 +553,7 @@
 	memcpy(buf, cid->oldstuff, cid->oldlen);
 	mylen += cid->oldlen/2;
 
-	for (x = 0; x < len; x++) 
+	for (x = 0; x < len; x++)
 		buf[x+cid->oldlen/2] = AST_XLAW(ubuf[x]);
 	while (mylen >= 160) {
 		olen = mylen;
@@ -623,7 +623,7 @@
 					cid->sawflag = 0;
 					break;
 				}
-		
+
 				cid->number[0] = '\0';
 				cid->name[0] = '\0';
 				/* Update flags */
@@ -643,7 +643,7 @@
 							res = cid->rawdata[x];
 							if (res > 32) {
 								ast_log(LOG_NOTICE, "Truncating long caller ID number from %d bytes to 32\n", cid->rawdata[x]);
-								res = 32; 
+								res = 32;
 							}
 							if (ast_strlen_zero(cid->number)) {
 								memcpy(cid->number, cid->rawdata + x + 1, res);
@@ -658,7 +658,7 @@
 							res = cid->rawdata[x];
 							if (res > 32) {
 								ast_log(LOG_NOTICE, "Truncating long caller ID name from %d bytes to 32\n", cid->rawdata[x]);
-								res = 32; 
+								res = 32;
 							}
 							memcpy(cid->name, cid->rawdata + x + 1, res);
 							cid->name[res] = '\0';
@@ -682,7 +682,7 @@
 							ast_log(LOG_NOTICE, "IE %d has bad field length of %d at offset %d\n", cid->rawdata[x-1], cid->rawdata[x], x);
 							/* Try again */
 							cid->sawflag = 0;
-							break; 	/* Exit the loop */
+							break;	/* Exit the loop */
 						}
 						x += cid->rawdata[x];
 						x++;
@@ -743,9 +743,9 @@
 
 	/* Get the time */
 	ast_localtime(&now, &tm, NULL);
-	
+
 	ptr = msg;
-	
+
 	/* Format time and message header */
 	res = snprintf(ptr, size, "\001\010%02d%02d%02d%02d", tm.tm_mon + 1,
 				tm.tm_mday, tm.tm_hour, tm.tm_min);
@@ -801,7 +801,7 @@
 		size -= i;
 	}
 	return (ptr - msg);
-	
+
 }
 
 int ast_callerid_vmwi_generate(unsigned char *buf, int active, int type, struct ast_format *codec,
@@ -815,20 +815,20 @@
 	float cr = 1.0;
 	float ci = 0.0;
 	float scont = 0.0;
-	
+
 	if (type == CID_MWI_TYPE_MDMF_FULL) {
 		/* MDMF Message waiting with date, number, name and MWI parameter */
 		msg[0] = 0x82;
 
 		/* put date, number info at the right place */
-		len = callerid_genmsg(msg+2, sizeof(msg)-2, number, name, flags); 
-		
+		len = callerid_genmsg(msg+2, sizeof(msg)-2, number, name, flags);
+
 		/* length of MDMF CLI plus Message Waiting Structure */
 		msg[1] = len+3;
-		
+
 		/* Go to the position to write to */
 		len = len+2;
-		
+
 		/* "Message Waiting Parameter" */
 		msg[len++] = 0x0b;
 		/* Length of IE is one */
@@ -838,7 +838,7 @@
 			msg[len++] = 0xff;
 		else
 			msg[len++] = 0x00;
-		
+
 	} else if (type == CID_MWI_TYPE_MDMF) {
 		/* MDMF Message waiting only */
 		/* same as above except that the we only put MWI parameter */
@@ -931,7 +931,7 @@
 	/* Send 50 more ms of marks */
 	for (x = 0; x < 50; x++)
 		PUT_CLID_MARKMS;
-	
+
 	return bytes;
 }
 
@@ -1076,7 +1076,7 @@
 		unknown = "<unknown>";
 	if (name && num)
 		snprintf(buf, bufsiz, "\"%s\" <%s>", name, num);
-	else if (name) 
+	else if (name)
 		ast_copy_string(buf, name, bufsiz);
 	else if (num)
 		ast_copy_string(buf, num, bufsiz);

Modified: trunk/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/cel.c?view=diff&rev=360190&r1=360189&r2=360190
==============================================================================
--- trunk/main/cel.c (original)
+++ trunk/main/cel.c Thu Mar 22 14:51:16 2012
@@ -49,8 +49,8 @@
 /*! \brief CEL is off by default */
 #define CEL_ENABLED_DEFAULT		0
 
-/*! 
- * \brief which events we want to track 
+/*!
+ * \brief which events we want to track
  *
  * \note bit field, up to 64 events
  */
@@ -62,7 +62,7 @@
  */
 #define CEL_MAX_EVENT_IDS 64
 
-/*! 
+/*!
  * \brief Track no events by default.
  */
 #define CEL_DEFAULT_EVENTS	0

Modified: trunk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/channel.c?view=diff&rev=360190&r1=360189&r2=360190
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Thu Mar 22 14:51:16 2012
@@ -100,14 +100,14 @@
 AST_THREADSTORAGE(state2str_threadbuf);
 #define STATE2STR_BUFSIZE   32
 
-/*! Default amount of time to use when emulating a digit as a begin and end 
+/*! Default amount of time to use when emulating a digit as a begin and end
  *  100ms */
 #define AST_DEFAULT_EMULATE_DTMF_DURATION 100
 
 /*! Minimum allowed digit length - 80ms */
 #define AST_MIN_DTMF_DURATION 80
 
-/*! Minimum amount of time between the end of the last digit and the beginning 
+/*! Minimum amount of time between the end of the last digit and the beginning
  *  of a new one - 45ms */
 #define AST_MIN_DTMF_GAP 45
 
@@ -145,7 +145,7 @@
 /*! \brief All active channels on the system */

[... 8090 lines stripped ...]



More information about the asterisk-commits mailing list