aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-09-26 18:37:03 -0400
committerRob Austein <sra@hactrn.net>2016-09-26 18:37:03 -0400
commit14fbc2167a6d8082e2b549c64e7fa1ebbc64d0fc (patch)
treea62fbdf669e1f019957272956dea9b225a1d3393
parent2dc81c98924db865be038476ecc8ce92c186efa7 (diff)
Fix function pointer type, typo in variable name.
-rw-r--r--stm-keystore.c8
1 files 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;
}
}