mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
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:
@@ -669,11 +669,12 @@ 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user