From 14fbc2167a6d8082e2b549c64e7fa1ebbc64d0fc Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 26 Sep 2016 18:37:03 -0400 Subject: Fix function pointer type, typo in variable name. --- stm-keystore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stm-keystore.c b/stm-keystore.c index b9900cb..d5d8adb 100644 --- a/stm-keystore.c +++ b/stm-keystore.c @@ -56,14 +56,14 @@ int keystore_write_data(uint32_t offset, const uint8_t *buf, const uint32_t len) } static int keystore_erase_something(uint32_t start, uint32_t stop, uint32_t limit, - int (*eraser)(uint32_t, uint32_t)) + int (*eraser)(struct spiflash_ctx *, uint32_t)) { - uint32_t someting; + uint32_t something; if (start > limit) return -2; if (stop > limit || stop < start) return -3; - for (someting = start; someting <= stop; someting++) { + for (something = start; something <= stop; something++) { int timeout = 200; /* times 10ms = 2 seconds timeout */ while (timeout--) { int i = n25q128_get_wip_flag(&keystore_ctx); @@ -73,7 +73,7 @@ static int keystore_erase_something(uint32_t start, uint32_t stop, uint32_t limi } if (! timeout) return 0; - if (! eraser(&keystore_ctx, someting)) { + if (! eraser(&keystore_ctx, something)) { return -1; } } -- cgit v1.2.3