From c81350d6f65e9a11da6b3b15a81d8cfb7a5eb6f5 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 11 Feb 2008 18:27:47 +0000 Subject: Just some minor coding style cleanup... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103318 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/asterisk.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main/asterisk.c') diff --git a/main/asterisk.c b/main/asterisk.c index 187623e71..742a9bbd5 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -947,7 +947,7 @@ void ast_console_puts_mutable(const char *string) static void ast_network_puts(const char *string) { int x; - for (x=0; x < AST_MAX_CONNECTS; x++) { + for (x = 0; x < AST_MAX_CONNECTS; x++) { if (consoles[x].fd > -1) fdprint(consoles[x].p[1], string); } @@ -1905,7 +1905,7 @@ static int ast_el_read_char(EditLine *el, char *cp) int tries; int reconnects_per_second = 20; fprintf(stderr, "Attempting to reconnect for 30 seconds\n"); - for (tries=0; tries < 30 * reconnects_per_second; tries++) { + for (tries = 0; tries < 30 * reconnects_per_second; tries++) { if (ast_tryconnect()) { fprintf(stderr, "Reconnect succeeded after %.3f seconds\n", 1.0 / reconnects_per_second * tries); printf(term_quit()); @@ -2152,7 +2152,7 @@ static int ast_cli_display_match_list(char **matches, int len, int max) for (; count > 0; count--) { numoutputline = 0; - for (i=0; i < limit && matches[idx]; i++, idx++) { + for (i = 0; i < limit && matches[idx]; i++, idx++) { /* Don't print dupes */ if ( (matches[idx+1] != NULL && strcmp(matches[idx], matches[idx+1]) == 0 ) ) { @@ -2264,7 +2264,7 @@ static char *cli_complete(EditLine *el, int ch) retval = CC_REFRESH; } else { /* Must be more than one match */ - for (i=1, maxlen=0; matches[i]; i++) { + for (i = 1, maxlen = 0; matches[i]; i++) { match_len = strlen(matches[i]); if (match_len > maxlen) maxlen = match_len; @@ -2792,7 +2792,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "Truncating argument size to %d\n", (int)(sizeof(_argv) / sizeof(_argv[0])) - 1); argc = sizeof(_argv) / sizeof(_argv[0]) - 1; } - for (x=0; x