[Asterisk-cvs] asterisk asterisk.c,1.125,1.126

citats at lists.digium.com citats at lists.digium.com
Fri Oct 1 14:33:28 CDT 2004


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

Modified Files:
	asterisk.c 
Log Message:
Fix some formatting in asterisk.c

Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- asterisk.c	28 Sep 2004 17:11:30 -0000	1.125
+++ asterisk.c	1 Oct 2004 18:35:35 -0000	1.126
@@ -669,10 +669,11 @@
 	else
 		fputs(s + pos,stdout);
 	fflush(stdout);
-	if (complete)
-	/* Wake up a poll()ing console */
+	if (complete) {
+		/* Wake up a poll()ing console */
 		if (option_console && consolethread != AST_PTHREADT_NULL)
 			pthread_kill(consolethread, SIGURG);
+	}
 }
 
 static int ast_all_zeros(char *s)
@@ -1169,7 +1170,8 @@
 				continue;
 			}
 
-			numoutput++;  numoutputline++;
+			numoutput++;
+			numoutputline++;
 			fprintf(stdout, "%-*s  ", max, matches[idx]);
 			free(matches[idx]);
 			matches[idx] = NULL;
@@ -1247,7 +1249,7 @@
 			matches = (char **) NULL;
 
 
-	}  else {
+	} else {
 
 		nummatches = ast_cli_generatornummatches((char *)lf->buffer,ptr);
 		matches = ast_cli_completion_matches((char *)lf->buffer,ptr);
@@ -1538,7 +1540,7 @@
 	}
 	v = ast_variable_browse(cfg, "options");
 	while(v) {
-		if(!strcasecmp(v->name, "verbose")) {
+		if (!strcasecmp(v->name, "verbose")) {
 			option_verbose= atoi(v->value);
 		} else if (!strcasecmp(v->name, "debug")) {
 			option_debug= ast_true(v->value);
@@ -1590,7 +1592,7 @@
 	_argv[x] = NULL;
 
 	/* if the progname is rasterisk consider it a remote console */
-	if ( argv[0] && (strstr(argv[0], "rasterisk")) != NULL)  {
+	if (argv[0] && (strstr(argv[0], "rasterisk")) != NULL) {
 		option_remote++;
 		option_nofork++;
 	}
@@ -1894,8 +1896,8 @@
 		set_icon("Asterisk");
 		snprintf(title, sizeof(title), "Asterisk Console on '%s' (pid %d)", hostname, ast_mainpid);
 		set_title(title);
-	    ast_cli_register(&quit);
-	    ast_cli_register(&astexit);
+		ast_cli_register(&quit);
+		ast_cli_register(&astexit);
 
 		for (;;) {
 			buf = (char *)el_gets(el, &num);




More information about the svn-commits mailing list