[Cryptech-Commits] [sw/stm32] branch ksng updated: Fix function pointer type, typo in variable name.

git at cryptech.is git at cryptech.is
Mon Sep 26 22:45:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch ksng
in repository sw/stm32.

The following commit(s) were added to refs/heads/ksng by this push:
       new  14fbc21   Fix function pointer type, typo in variable name.
14fbc21 is described below

commit 14fbc2167a6d8082e2b549c64e7fa1ebbc64d0fc
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Sep 26 18:37:03 2016 -0400

    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;
         }
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list