Index: cli.c =================================================================== RCS file: /usr/cvsroot/asterisk/cli.c,v retrieving revision 1.69 diff -u -r1.69 cli.c --- cli.c 6 Jan 2005 08:11:43 -0000 1.69 +++ cli.c 8 Jan 2005 09:48:55 -0000 @@ -814,7 +814,7 @@ if (match) return &builtins[x]; } - for (e=helpers;e;e=e->next) { + for (e=helpers; e; e=e->next) { match = 1; for (y=0;match && cmds[y]; y++) { if (!e->cmda[y] && !exact) @@ -830,6 +830,7 @@ return e; } +/* join: Join words with space between words */ static void join(char *dest, size_t destsize, char *w[]) { int x; @@ -838,13 +839,14 @@ return; } dest[0] = '\0'; - for (x=0;w[x];x++) { + for (x=0; w[x]; x++) { if (x) strncat(dest, " ", destsize - strlen(dest) - 1); strncat(dest, w[x], destsize - strlen(dest) - 1); } } +/* join2: Join words with no space between words */ static void join2(char *dest, size_t destsize, char *w[]) { int x; @@ -853,7 +855,7 @@ return; } dest[0] = '\0'; - for (x=0;w[x];x++) { + for (x=0; w[x]; x++) { strncat(dest, w[x], destsize - strlen(dest) - 1); } } @@ -864,9 +866,9 @@ int x; /* See how close we get, then print the */ char *myargv[AST_MAX_CMD_LEN]; - for (x=0;x