summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-15 08:58:31 +0000
committertron <tron@openttd.org>2005-01-15 08:58:31 +0000
commit3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169 (patch)
treee70312993e66c5b848feb30831527cca401c08f8 /console_cmds.c
parent7f7c6297f7bb6bb225741773a5438a916a91da08 (diff)
downloadopenttd-3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169.tar.xz
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 1974e33ce..73eaca08f 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -217,7 +217,7 @@ DEF_CONSOLE_CMD(ConScanFiles)
result = IConsoleVarAlloc(ICONSOLE_VAR_STRING);
-
+
if (argc <= 1) {
IConsoleVarSetString(result, "0");
return result; // return an zero
@@ -229,7 +229,7 @@ DEF_CONSOLE_CMD(ConScanFiles)
/* As long as we have files */
while (pos < _fios_num) {
item = _fios_list + pos;
- pos++;
+ pos++;
if (strcmp(argv[1], "..") == 0) {
if (item->type == FIOS_TYPE_PARENT) {
// huh we are searching for the parent directory
@@ -238,7 +238,7 @@ DEF_CONSOLE_CMD(ConScanFiles)
IConsoleVarSetString(result, buffer);
return result;
}
- } else
+ } else
// file records ?
if (item->type == FIOS_TYPE_FILE) {
if (strcmp(argv[1], item->name) == 0) {
@@ -246,7 +246,7 @@ DEF_CONSOLE_CMD(ConScanFiles)
sprintf(buffer, "%d", pos);
IConsoleVarSetString(result, buffer);
return result;
- }
+ }
}
}