[CMD] Code formatting only.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 18 Nov 2017 20:32:10 +0000 (21:32 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 18 Nov 2017 22:52:50 +0000 (23:52 +0100)
base/shell/cmd/call.c
base/shell/cmd/internal.c

index 56b61db..2cf2772 100644 (file)
@@ -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(' '))
index 4e14daf..4830660 100644 (file)
@@ -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);