gnucash maint: Change non-standard and non-Gnome uint to guint.

John Ralls jralls at code.gnucash.org
Sun Dec 13 13:38:51 EST 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/f2f1e98b (commit)
	from  https://github.com/Gnucash/gnucash/commit/fd8f95f5 (commit)



commit f2f1e98b32956533e62114a1bea35a97f51fcdbf
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Dec 13 10:38:06 2020 -0800

    Change non-standard and non-Gnome uint to guint.

diff --git a/gnucash/import-export/aqb/gnc-flicker-gui.c b/gnucash/import-export/aqb/gnc-flicker-gui.c
index b8bb981e5..f0d78e88b 100644
--- a/gnucash/import-export/aqb/gnc-flicker-gui.c
+++ b/gnucash/import-export/aqb/gnc-flicker-gui.c
@@ -89,7 +89,7 @@ static GncFlickerGui *flickergui = NULL;
 static _Bool bitarray[255][5];
 
 /* this function will return number corresponding 0,1,2..,9,A,B,C,D,E,F */
-static uint
+static guint
 get_num (const char ch)
 {
     int num =0;
@@ -137,10 +137,10 @@ static char
 
     /* Swap the position of the bits in pairs throughout the bank challenge
        (low-order nibble first). */
-     for (uint i = 0; i < len - 1; i += 2)
+     for (guint i = 0; i < len - 1; i += 2)
      {
-         u_int val1 = get_num (code[i]);
-         u_int val2 = get_num (code[i+1]);
+         guint val1 = get_num (code[i]);
+         guint val2 = get_num (code[i+1]);
 
          memcpy (&bitarray[i], bits[val2], sizeof(bits[val2]));
          memcpy (&bitarray[i+1], bits[val1], sizeof(bits[val1]));



Summary of changes:
 gnucash/import-export/aqb/gnc-flicker-gui.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)



More information about the gnucash-changes mailing list