summaryrefslogtreecommitdiff
path: root/BeagleBoardPkg/Tools/replace.c
diff options
context:
space:
mode:
authorRonald Cron <ronald.cron@arm.com>2014-08-19 13:29:52 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-19 13:29:52 +0000
commit3402aac7d985bf8a9f9d3c639f3fe93609380513 (patch)
tree67b11334dc45181581aaaac236243fe72c7f614c /BeagleBoardPkg/Tools/replace.c
parent62d441fb17d59958bf00c4a1f3b52bf6a0b40b24 (diff)
downloadedk2-platforms-3402aac7d985bf8a9f9d3c639f3fe93609380513.tar.xz
ARM Packages: Removed trailing spaces
Trailing spaces create issue/warning when generating/applying patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron <ronald.cron@arm.com> Reviewed-By: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BeagleBoardPkg/Tools/replace.c')
-rw-r--r--BeagleBoardPkg/Tools/replace.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/BeagleBoardPkg/Tools/replace.c b/BeagleBoardPkg/Tools/replace.c
index e35c394dc2..00f4249592 100644
--- a/BeagleBoardPkg/Tools/replace.c
+++ b/BeagleBoardPkg/Tools/replace.c
@@ -1,9 +1,9 @@
//
-// Quick hack to work around not having sed, or any other reasonable
+// Quick hack to work around not having sed, or any other reasonable
// way to edit a file from a script on Windows......
//
// Copyright (c) 2010, Apple Inc. All rights reserved.<BR>
-//
+//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
// which accompanies this distribution. The full text of the license may be found at
@@ -40,7 +40,7 @@ Usage (char *Name)
// argv[1] - Old File
// argv[2] - New File
// argv[3+n] - Match String
-// argv[4+n] - Replace string
+// argv[4+n] - Replace string
int
main (int argc, char **argv)
{
@@ -106,9 +106,9 @@ main (int argc, char **argv)
// into a buffer that is as big as the maximum search key size.
// Then we can search the keys for a match. If no match
// copy the old file character to the new file. If it is a match
- // then copy the replacement string into the output file.
- // This code assumes the file system is smart and caches the
- // file in a buffer. So all the reads don't really hit the disk.
+ // then copy the replacement string into the output file.
+ // This code assumes the file system is smart and caches the
+ // file in a buffer. So all the reads don't really hit the disk.
InFilePos = 0;
while (InFilePos < (InFileSize - MinLenKey)) {
fseek (In, InFilePos, SEEK_SET);
@@ -126,7 +126,7 @@ main (int argc, char **argv)
if (!Found) {
fputc (Key[0], Out);
}
-
+
InFilePos++;
}
@@ -136,7 +136,7 @@ main (int argc, char **argv)
while ((c = fgetc (In)) != EOF) {
fputc (c, Out);
}
-
+
fclose (In);
fclose (Out);
free (Key);