Fix some formatting in asterisk.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-10-01 18:35:35 +00:00
parent 74786b8c58
commit 9b926b1d64

View File

@@ -669,10 +669,11 @@ static void console_verboser(const char *s, int pos, int replace, int complete)
else else
fputs(s + pos,stdout); fputs(s + pos,stdout);
fflush(stdout); fflush(stdout);
if (complete) if (complete) {
/* Wake up a poll()ing console */ /* Wake up a poll()ing console */
if (option_console && consolethread != AST_PTHREADT_NULL) if (option_console && consolethread != AST_PTHREADT_NULL)
pthread_kill(consolethread, SIGURG); pthread_kill(consolethread, SIGURG);
}
} }
static int ast_all_zeros(char *s) static int ast_all_zeros(char *s)
@@ -1169,7 +1170,8 @@ static int ast_cli_display_match_list(char **matches, int len, int max)
continue; continue;
} }
numoutput++; numoutputline++; numoutput++;
numoutputline++;
fprintf(stdout, "%-*s ", max, matches[idx]); fprintf(stdout, "%-*s ", max, matches[idx]);
free(matches[idx]); free(matches[idx]);
matches[idx] = NULL; matches[idx] = NULL;
@@ -1538,7 +1540,7 @@ static void ast_readconfig(void) {
} }
v = ast_variable_browse(cfg, "options"); v = ast_variable_browse(cfg, "options");
while(v) { while(v) {
if(!strcasecmp(v->name, "verbose")) { if (!strcasecmp(v->name, "verbose")) {
option_verbose= atoi(v->value); option_verbose= atoi(v->value);
} else if (!strcasecmp(v->name, "debug")) { } else if (!strcasecmp(v->name, "debug")) {
option_debug= ast_true(v->value); option_debug= ast_true(v->value);
@@ -1590,7 +1592,7 @@ int main(int argc, char *argv[])
_argv[x] = NULL; _argv[x] = NULL;
/* if the progname is rasterisk consider it a remote console */ /* 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_remote++;
option_nofork++; option_nofork++;
} }