This is an automated email from Gerrit.

"Antonio Borneo <[email protected]>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9794

-- gerrit

commit d9c7ca7607d40163f1a9d3f2995d676bb561358a
Author: Antonio Borneo <[email protected]>
Date:   Thu Jul 23 15:01:43 2026 +0200

    flash: nand: drop type 'u_char'
    
    Replace the non standard type 'u_char' with 'unsigned char'.
    
    Change-Id: I5f3d3ab4909dfbc20d667724fb9b150451292f42
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/flash/nand/core.h b/src/flash/nand/core.h
index 4286e11832..7829f97a45 100644
--- a/src/flash/nand/core.h
+++ b/src/flash/nand/core.h
@@ -203,8 +203,8 @@ int nand_calculate_ecc(struct nand_device *nand,
                       const uint8_t *dat, uint8_t *ecc_code);
 int nand_calculate_ecc_kw(struct nand_device *nand,
                          const uint8_t *dat, uint8_t *ecc_code);
-int nand_correct_data(struct nand_device *nand, u_char *dat,
-               u_char *read_ecc, u_char *calc_ecc);
+int nand_correct_data(struct nand_device *nand, unsigned char *dat,
+               unsigned char *read_ecc, unsigned char *calc_ecc);
 
 int nand_register_commands(struct command_context *cmd_ctx);
 
diff --git a/src/flash/nand/ecc.c b/src/flash/nand/ecc.c
index 20b8ba85dc..a723e4dd8c 100644
--- a/src/flash/nand/ecc.c
+++ b/src/flash/nand/ecc.c
@@ -110,8 +110,8 @@ static inline int countbits(uint32_t b)
 /**
  * nand_correct_data - Detect and correct a 1 bit error for 256 byte block
  */
-int nand_correct_data(struct nand_device *nand, u_char *dat,
-               u_char *read_ecc, u_char *calc_ecc)
+int nand_correct_data(struct nand_device *nand, unsigned char *dat,
+               unsigned char *read_ecc, unsigned char *calc_ecc)
 {
        uint8_t s0, s1, s2;
 

-- 

Reply via email to