summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2011-06-27 15:46:21 -0700
committerRandall Spangler <rspangler@chromium.org>2011-06-27 15:51:38 -0700
commit1c1a883bc746a6216bb634825d33d80562853020 (patch)
treebc5336d806bc59d1345070784a29642fbabe22f0
parentbd81b3a7d3b7fe4ca6179ade665e565800ab17fc (diff)
downloadvboot-1c1a883bc746a6216bb634825d33d80562853020.tar.gz
Fix ARM build for vboot_reference crossystem lib
BUG=none TEST=none Change-Id: I655cd69a0e1d2a3ad6ce9f326cbd989fc8ecb43d Reviewed-on: http://gerrit.chromium.org/gerrit/3270 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--host/arch/arm/lib/crossystem_arch.c2
-rw-r--r--tests/firmware_verify_benchmark.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c
index 2858fc5a..ecff5abf 100644
--- a/host/arch/arm/lib/crossystem_arch.c
+++ b/host/arch/arm/lib/crossystem_arch.c
@@ -205,7 +205,7 @@ VbSharedDataHeader *VbSharedDataRead(void) {
/* don't need this malloc/copy, but have to do it to comply with the
* wrapper.
*/
- VbSharedDataHeader *p = Malloc(sizeof(*p));
+ VbSharedDataHeader *p = malloc(sizeof(*p));
Memcpy(p, shared_memory.shared_data_body, sizeof(*p));
return p;
}
diff --git a/tests/firmware_verify_benchmark.c b/tests/firmware_verify_benchmark.c
index 598cdfc2..61f23abd 100644
--- a/tests/firmware_verify_benchmark.c
+++ b/tests/firmware_verify_benchmark.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
@@ -68,7 +68,7 @@ int SpeedTestAlgorithm(int algorithm) {
/* Generate test images. */
for (i = 0; i < NUM_SIZES_TO_TEST; ++i) {
- firmware_blobs[i] = (uint8_t*) Malloc(g_firmware_sizes_to_test[i]);
+ firmware_blobs[i] = (uint8_t*) malloc(g_firmware_sizes_to_test[i]);
Memset(firmware_blobs[i], 'F', g_firmware_sizes_to_test[i]);
verification_blobs[i] = GenerateTestVerificationBlob(
algorithm,
@@ -120,10 +120,10 @@ int SpeedTestAlgorithm(int algorithm) {
cleanup:
for (i = 0; i < NUM_SIZES_TO_TEST; i++) {
- Free(firmware_blobs[i]);
- Free(verification_blobs[i]);
+ free(firmware_blobs[i]);
+ free(verification_blobs[i]);
}
- Free(root_key_blob);
+ free(root_key_blob);
return error_code;
}