X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FEfiLdrImage%2FEfiLdrImage.c;h=01685964f19c60d8f815bd8070a3fe155e51db94;hp=3591a4d71b970ea757d3fc1fe80c9ec60cbabecf;hb=b36d134faf4305247830522b8e2bb255e98c5699;hpb=30fdf1140b8d1ce93f3821d986fa165552023440 diff --git a/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c b/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c index 3591a4d71b..01685964f1 100644 --- a/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c +++ b/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c @@ -1,7 +1,7 @@ /** @file -Copyright 2006 - 2008, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+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 http://opensource.org/licenses/bsd-license.php @@ -83,8 +83,8 @@ Returns: --*/ { - printf ("%s v%d.%d -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION); - printf ("Copyright (c) 1999-2007 Intel Corporation. All rights reserved.\n"); + printf ("%s v%d.%d %s -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION); + printf ("Copyright (c) 1999-2010 Intel Corporation. All rights reserved.\n"); } VOID @@ -131,7 +131,7 @@ Return: UINT64 : file size of input file --*/ { - UINT64 filesize, offset, length; + UINT32 filesize, offset, length; CHAR8 Buffer[8*1024]; fseek (in, 0, SEEK_END); @@ -252,7 +252,7 @@ Returns: continue; } // - // Don't recognize the paramter, should be regarded as the input file name. + // Don't recognize the parameter, should be regarded as the input file name. // InputFileNames[InputFileCount] = argv[0]; InputFileCount++; @@ -309,9 +309,9 @@ Returns: // And in the same time update the EfiLdrHeader and EfiLdrImage array // EfiLdrImage[i].Offset = EfiLdrHeader.FileLength; - EfiLdrImage[i].Length = filesize; + EfiLdrImage[i].Length = (UINT32) filesize; strncpy ((CHAR8*) EfiLdrImage[i].FileName, InputFileNames[i], sizeof (EfiLdrImage[i].FileName) - 1); - EfiLdrHeader.FileLength += filesize; + EfiLdrHeader.FileLength += (UINT32) filesize; EfiLdrHeader.NumberOfImages++; }