OSDN Git Service

[ 2816643 ] Matching arguments of funcion flasherase()
authorarniml <arniml@b68d4a1b-bc3d-0410-92ed-d4ac073336b7>
Wed, 15 Jul 2009 13:29:49 +0000 (13:29 +0000)
committerarniml <arniml@b68d4a1b-bc3d-0410-92ed-d4ac073336b7>
Wed, 15 Jul 2009 13:29:49 +0000 (13:29 +0000)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1659 b68d4a1b-bc3d-0410-92ed-d4ac073336b7

jtag/ChangeLog
jtag/include/jtag.h
jtag/src/flash/flash.c
urjtag/ChangeLog
urjtag/include/urjtag/flash.h
urjtag/src/flash/flash.c

index cbeee39..e4d657a 100644 (file)
@@ -1,5 +1,8 @@
 2009-07-15  Arnim Laeuger  <arniml>
 
+  * src/flash/flash.c, include/jtag.h:
+    [ 2816643 ] Matching arguments of funcion flasherase()
+
   * autogen.sh: forward command line parameters
 
   * configure.ac, src/Makefile.am: first issue of
index 52b452d..d576936 100644 (file)
@@ -58,6 +58,6 @@ void idcode( chain_t *chain , unsigned int bytes);
 void readmem( bus_t *bus, FILE *f, uint32_t addr, uint32_t len );
 void writemem( bus_t *bus, FILE *f, uint32_t addr, uint32_t len );
 
-void flasherase( bus_t *bus, uint32_t addr, int number );
+void flasherase( bus_t *bus, uint32_t addr, uint32_t number );
 
 #endif /* JTAG_H */
index b4f4233..c87f9e2 100644 (file)
@@ -380,10 +380,10 @@ flashmem( bus_t *bus, FILE *f, uint32_t addr, int noverify )
 }
 
 void
-flasherase( bus_t *bus, uint32_t addr, int number )
+flasherase( bus_t *bus, uint32_t addr, uint32_t number )
 {
        cfi_query_structure_t *cfi;
-       int i;
+       uint32_t i;
        int status = 0;
        int bus_width;
        int chip_width;
index 8370a9c..38a6276 100644 (file)
@@ -1,5 +1,8 @@
 2009-07-15  Arnim Laeuger  <arniml>
 
+  * src/flash/flash.c, include/urjtag/flash.h:
+    [ 2816643 ] Matching arguments of funcion flasherase()
+
   * configure.ac, Makefile.am: first issue of
     [ 2807343 ] urjtag dependencies missing autoconf checks
     disabled SVF or disabled BSDL prevents potfile creation
index 0a7ea55..38123cc 100644 (file)
@@ -72,6 +72,6 @@ int urj_flashmem (urj_bus_t *bus, FILE *f, uint32_t addr, int);
 int urj_flashmsbin (urj_bus_t *bus, FILE *f, int);
 
 /** @return URJ_STATUS_OK on success; URJ_STATUS_FAIL on error */
-int urj_flasherase (urj_bus_t *bus, uint32_t addr, int number);
+int urj_flasherase (urj_bus_t *bus, uint32_t addr, uint32_t number);
 
 #endif /* URJ_FLASH_H */
index 2eb47ce..b40047b 100644 (file)
@@ -470,10 +470,10 @@ urj_flashmem (urj_bus_t *bus, FILE *f, uint32_t addr, int noverify)
 }
 
 int
-urj_flasherase (urj_bus_t *bus, uint32_t addr, int number)
+urj_flasherase (urj_bus_t *bus, uint32_t addr, uint32_t number)
 {
     urj_flash_cfi_query_structure_t *cfi;
-    int i;
+    uint32_t i;
     int status = URJ_STATUS_OK;
     int bus_width;
     int chip_width;