mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-09 15:22:11 -04:00
Tidy-up
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
42a5bb16c6
commit
8dde24eb08
@ -240,7 +240,7 @@ unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int r
|
||||
|
||||
if (reset) {
|
||||
QueryPerformanceCounter(&t->start);
|
||||
memcpy(val, t, sizeof(struct _hr_time));
|
||||
memcpy(val, val_aligned, sizeof(struct mbedtls_timing_hr_time));
|
||||
return 0;
|
||||
} else {
|
||||
unsigned long delta;
|
||||
@ -290,7 +290,7 @@ unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int r
|
||||
|
||||
if (reset) {
|
||||
gettimeofday(&t->start, NULL);
|
||||
memcpy(val, t, sizeof(struct _hr_time));
|
||||
memcpy(val, val_aligned, sizeof(struct mbedtls_timing_hr_time));
|
||||
return 0;
|
||||
} else {
|
||||
unsigned long delta;
|
||||
|
Loading…
x
Reference in New Issue
Block a user