vboot: use standard memcmp, memcpy, memset

Originally, we didn't trust the firmware to provide these functions from
a standard library.  Now, with coreboot, we do.

BUG=chromium:611535
BRANCH=none
TEST=make runtests; emerge-kevin coreboot depthcharge

Change-Id: I4e624c40085f2b665275a38624340b2f6aabcf11
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/399120
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
Randall Spangler
2016-10-13 16:16:41 -07:00
committed by chrome-bot
parent 08d56aa7a7
commit 664096bd1a
51 changed files with 341 additions and 404 deletions

View File

@@ -220,7 +220,7 @@ GptEntry *GptFindNthEntry(GptData *gpt, const Guid *guid, unsigned int n)
int i;
for (i = 0, e = entries; i < header->number_of_entries; i++, e++) {
if (!Memcmp(&e->type, guid, sizeof(*guid))) {
if (!memcmp(&e->type, guid, sizeof(*guid))) {
if (n == 0)
return e;
n--;