Fix the following error detected by checkpatch.pl:
ERROR: space required before the open parenthesis '('
TEST=Build and run on Galileo Gen2
Change-Id: I4df0f7f6d62561044605616aa623c2cfc2ccfa50
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 45fde705b6
Original-Change-Id: I8953fecbe75136ff989c9e3cf6c5e155dcee3c3b
Original-Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Original-Reviewed-on: https://review.coreboot.org/18698
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://chromium-review.googlesource.com/452883
17 lines
275 B
C
17 lines
275 B
C
#include <string.h>
|
|
|
|
int memcmp(const void *src1, const void *src2, size_t bytes)
|
|
{
|
|
const unsigned char *s1, *s2;
|
|
int result;
|
|
s1 = src1;
|
|
s2 = src2;
|
|
result = 0;
|
|
while ((bytes > 0) && (result == 0)) {
|
|
result = *s1 - *s2;
|
|
bytes--;
|
|
s1++;
|
|
s2++;
|
|
}
|
|
return result;
|
|
}
|