diff options
author | Tim Riker | 2006-01-25 00:08:53 +0000 |
---|---|---|
committer | Tim Riker | 2006-01-25 00:08:53 +0000 |
commit | c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4 (patch) | |
tree | 5f329b7d0c7f20ecced0dc7581a9ba6dc720d965 /shell | |
parent | f64ff682a3d58dbb627e760e6fe1ec21d9ccdf61 (diff) | |
download | busybox-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.zip busybox-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.gz |
just whitespace
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 | ||||
-rw-r--r-- | shell/cmdedit.c | 16 | ||||
-rw-r--r-- | shell/hush.c | 20 | ||||
-rw-r--r-- | shell/lash.c | 2 | ||||
-rw-r--r-- | shell/msh.c | 6 |
5 files changed, 24 insertions, 24 deletions
diff --git a/shell/ash.c b/shell/ash.c index ef1fe0a..69062e0 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -841,7 +841,7 @@ static int SIT(int c, int syntax) return S_I_T[indx][syntax]; } -#else /* USE_SIT_FUNCTION */ +#else /* USE_SIT_FUNCTION */ #define SIT(c, syntax) S_I_T[(int)syntax_index_table[((int)c)+SYNBASE]][syntax] @@ -1142,7 +1142,7 @@ static const char syntax_index_table[258] = { /* 257 127 */ CWORD_CWORD_CWORD_CWORD, }; -#endif /* USE_SIT_FUNCTION */ +#endif /* USE_SIT_FUNCTION */ /* alias.c */ diff --git a/shell/cmdedit.c b/shell/cmdedit.c index edfa016..db24631 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c @@ -67,7 +67,7 @@ #define CONFIG_FEATURE_NONPRINTABLE_INVERSE_PUT #define CONFIG_FEATURE_CLEAN_UP -#endif /* TEST */ +#endif /* TEST */ #ifdef CONFIG_FEATURE_COMMAND_TAB_COMPLETION #include <dirent.h> @@ -82,7 +82,7 @@ #ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR #include "pwd_.h" -#endif /* advanced FEATURES */ +#endif /* advanced FEATURES */ /* Maximum length of the linked list for the command line history */ @@ -177,7 +177,7 @@ static void win_changed(int nsig) previous_SIGWINCH_handler = signal(SIGWINCH, win_changed); else if (nsig == SIGWINCH) /* signaled called handler */ signal(SIGWINCH, win_changed); /* set for next call */ - else /* nsig == 0 */ + else /* nsig == 0 */ /* set previous handler */ signal(SIGWINCH, previous_SIGWINCH_handler); /* reset */ } @@ -907,7 +907,7 @@ static int find_match(char *matchBuf, int *len_with_quotes) } /* collapse (command...(command...)...) or {command...{command...}...} */ - c = 0; /* "recursive" level */ + c = 0; /* "recursive" level */ c2 = 0; for (i = 0; int_buf[i]; i++) if (int_buf[i] == '(' || int_buf[i] == '{') { @@ -1358,7 +1358,7 @@ vi_back_motion(char *command) } #endif -/* +/* * the normal emacs mode and vi's insert mode are the same. * commands entered when in vi command mode ("escape mode") get * an extra bit added to distinguish them. this lets them share @@ -1431,7 +1431,7 @@ int cmdedit_read_input(char *prompt, char command[BUFSIZ]) newdelflag = 1; ic = c; if (vi_cmdmode) - ic |= VI_cmdbit; + ic |= VI_cmdbit; switch (ic) #else switch (c) @@ -1613,7 +1613,7 @@ prepare_to_die: vi_cmdmode = 0; /* fall through */ case VICMD('d'): - { + { int nc, sc; sc = cursor; prevc = ic; @@ -1632,7 +1632,7 @@ prepare_to_die: case 'E': switch (c) { case 'w': /* "dw", "cw" */ - vi_word_motion(command, vi_cmdmode); + vi_word_motion(command, vi_cmdmode); break; case 'W': /* 'dW', 'cW' */ vi_Word_motion(command, vi_cmdmode); diff --git a/shell/hush.c b/shell/hush.c index 70533a2..ff29974 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -1581,7 +1581,7 @@ static int run_list_real(struct pipe *pi) if (rmode == RES_IN) continue; if (rmode == RES_DO) { if (!flag_rep) continue; - } + } if ((rmode == RES_DONE)) { if (flag_rep) { flag_restore = 1; @@ -1782,17 +1782,17 @@ static int xglob(o_string *dest, int flags, glob_t *pglob) { int gr; - /* short-circuit for null word */ + /* short-circuit for null word */ /* we can code this better when the debug_printf's are gone */ - if (dest->length == 0) { - if (dest->nonnull) { - /* bash man page calls this an "explicit" null */ - gr = globhack(dest->data, flags, pglob); - debug_printf("globhack returned %d\n",gr); - } else { + if (dest->length == 0) { + if (dest->nonnull) { + /* bash man page calls this an "explicit" null */ + gr = globhack(dest->data, flags, pglob); + debug_printf("globhack returned %d\n",gr); + } else { return 0; } - } else if (glob_needed(dest->data)) { + } else if (glob_needed(dest->data)) { gr = glob(dest->data, flags, NULL, pglob); debug_printf("glob returned %d\n",gr); if (gr == GLOB_NOMATCH) { @@ -2111,7 +2111,7 @@ static int done_word(o_string *dest, struct p_context *ctx) if (reserved_word(dest,ctx)) return ctx->w==RES_SNTX; } glob_target = &child->glob_result; - if (child->argv) flags |= GLOB_APPEND; + if (child->argv) flags |= GLOB_APPEND; } gr = xglob(dest, flags, glob_target); if (gr != 0) return 1; diff --git a/shell/lash.c b/shell/lash.c index a23f5f4..56a3a23 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -1267,7 +1267,7 @@ static int pseudo_exec(struct child_prog *child) char** argv_l=child->argv; int argc_l; #ifdef _NEWLIB_VERSION - /* newlib uses __getopt_initialized for getopt() in + /* newlib uses __getopt_initialized for getopt() in * addition to optind, see newlib/libc/sys/linux/getopt.c */ extern int __getopt_initialized = 0; diff --git a/shell/msh.c b/shell/msh.c index 9e9a10b..08ca792 100644 --- a/shell/msh.c +++ b/shell/msh.c @@ -335,9 +335,9 @@ static void sig(int i); /* default signal handler */ #define GROWBY (256) /* #define SHRINKBY (64) */ #undef SHRINKBY -#define FREE (32767) -#define BUSY (0) -#define ALIGN (sizeof(int)-1) +#define FREE (32767) +#define BUSY (0) +#define ALIGN (sizeof(int)-1) struct region { |