Changes to allow compilation of CpriHash.c
CpriHashData.c is not supposed to be a separate compilation unit, is
being removed from Makefile.
BUG=none
TEST=compilation succeeds:
cc -Wall -Werror -c -o /dev/null CpriHash.c
Change-Id: Idd2a987097ac7c90e93552af14c85b0d23ac4ca6
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/274100
Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
diff --git a/CpriHash.c b/CpriHash.c
index eee82cc..a2d9bf0 100644
--- a/CpriHash.c
+++ b/CpriHash.c
@@ -5,6 +5,8 @@
// Level 00 Revision 01.16
// October 30, 2014
+#include <string.h>
+
#include "OsslCryptoEngine.h"
#include "CpriHashData.c"
#define OSSL_HASH_STATE_DATA_SIZE (MAX_HASH_STATE_SIZE - 8)
@@ -64,6 +66,7 @@
default:
FAIL(FATAL_ERROR_INTERNAL);
}
+ return NULL; // Never reached.
}
//
//