]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Tools/replace.c
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / BeagleBoardPkg / Tools / replace.c
index e35c394dc23909019178724bc9d46f95c62005ce..00f42495929b9c7d29324da778aef70da3b5a44b 100644 (file)
@@ -1,9 +1,9 @@
 //\r
-// Quick hack to work around not having sed, or any other reasonable \r
+// Quick hack to work around not having sed, or any other reasonable\r
 // way to edit a file from a script on Windows......\r
 //\r
 // Copyright (c) 2010, Apple Inc. All rights reserved.<BR>\r
-//  \r
+//\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
@@ -40,7 +40,7 @@ Usage (char *Name)
 // argv[1] - Old File\r
 // argv[2] - New File\r
 // argv[3+n] - Match String\r
-// argv[4+n] - Replace string \r
+// argv[4+n] - Replace string\r
 int\r
 main (int argc, char **argv)\r
 {\r
@@ -106,9 +106,9 @@ main (int argc, char **argv)
   // into a buffer that is as big as the maximum search key size.\r
   // Then we can search the keys for a match. If no match\r
   // copy the old file character to the new file. If it is a match\r
-  // then copy the replacement string into the output file. \r
-  // This code assumes the file system is smart and caches the \r
-  // file in a buffer. So all the reads don't really hit the disk. \r
+  // then copy the replacement string into the output file.\r
+  // This code assumes the file system is smart and caches the\r
+  // file in a buffer. So all the reads don't really hit the disk.\r
   InFilePos = 0;\r
   while (InFilePos < (InFileSize - MinLenKey)) {\r
     fseek (In, InFilePos, SEEK_SET);\r
@@ -126,7 +126,7 @@ main (int argc, char **argv)
     if (!Found) {\r
       fputc (Key[0], Out);\r
     }\r
\r
+\r
     InFilePos++;\r
   }\r
 \r
@@ -136,7 +136,7 @@ main (int argc, char **argv)
   while ((c = fgetc (In)) != EOF) {\r
     fputc (c, Out);\r
   }\r
\r
+\r
   fclose (In);\r
   fclose (Out);\r
   free (Key);\r