https://git.reactos.org/?p=reactos.git;a=commitdiff;h=24ed5344745899cf26494ce1cb8b5b226ce84147
commit 24ed5344745899cf26494ce1cb8b5b226ce84147 Author: Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org> AuthorDate: Sat Nov 18 21:32:10 2017 +0100 [CMD] Code formatting only. --- base/shell/cmd/call.c | 6 +++--- base/shell/cmd/internal.c | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/base/shell/cmd/call.c b/base/shell/cmd/call.c index 56b61dbe2e..2cf2772c3c 100644 --- a/base/shell/cmd/call.c +++ b/base/shell/cmd/call.c @@ -34,7 +34,7 @@ * Perform CALL command. */ -INT cmd_call (LPTSTR param) +INT cmd_call(LPTSTR param) { TCHAR line[CMDLINE_LENGTH + 1]; TCHAR *first; @@ -49,7 +49,7 @@ INT cmd_call (LPTSTR param) /* Do a second round of %-variable substitutions */ if (!SubstituteVars(param, line, _T('%'))) - return nErrorLevel = 1; + return (nErrorLevel = 1); /* Find start and end of first word */ first = line; @@ -67,7 +67,7 @@ INT cmd_call (LPTSTR param) memmove(param + 1, param, (_tcslen(param) + 1) * sizeof(TCHAR)); *param++ = _T('\0'); - if (*first == _T(':') && (bc)) + if (*first == _T(':') && bc) { /* CALL :label - call a subroutine of the current batch file */ while (*param == _T(' ')) diff --git a/base/shell/cmd/internal.c b/base/shell/cmd/internal.c index 4e14daf527..4830660bbc 100644 --- a/base/shell/cmd/internal.c +++ b/base/shell/cmd/internal.c @@ -282,7 +282,7 @@ INT cmd_chdir (LPTSTR param) #ifdef INCLUDE_CMD_MKDIR /* Helper function for mkdir to make directories in a path. -Dont use the api to decrease depence on libs */ +Don't use the api to decrease dependence on libs */ BOOL MakeFullPath(TCHAR * DirPath) { @@ -509,21 +509,21 @@ INT cmd_rmdir (LPTSTR param) /* * set the exitflag to true */ -INT CommandExit (LPTSTR param) +INT CommandExit(LPTSTR param) { - if (!_tcsncmp (param, _T("/?"), 2)) + if (!_tcsncmp(param, _T("/?"), 2)) { - ConOutResPaging(TRUE,STRING_EXIT_HELP); + ConOutResPaging(TRUE, STRING_EXIT_HELP); /* Just make sure */ bExit = FALSE; - /* Dont exit */ + /* Don't exit */ return 0; } - if (bc != NULL && _tcsnicmp(param,_T("/b"),2) == 0) + if (bc != NULL && _tcsnicmp(param, _T("/b"), 2) == 0) { param += 2; - while (_istspace (*param)) + while (_istspace(*param)) param++; if (_istdigit(*param)) nErrorLevel = _ttoi(param);