From: Marcel T. <te...@us...> - 2003-11-03 21:11:38
|
Update of /cvsroot/openwince/libbrux/flash In directory sc8-pr-cvs1:/tmp/cvs-serv1358/flash Modified Files: jedec.c Log Message: 2003-11-03 Marcel Telka <ma...@te...> * flash/jedec.c (jedec_detect): Fixed compile error - C++-style declaration (bug 828313, thanks to Márton Németh). Index: jedec.c =================================================================== RCS file: /cvsroot/openwince/libbrux/flash/jedec.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- jedec.c 23 Sep 2003 17:48:40 -0000 1.1 +++ jedec.c 3 Nov 2003 21:11:34 -0000 1.2 @@ -37,6 +37,7 @@ { int mid; int did; + cfi_query_structure_t *cfi; /* Query flash. */ bus_write( bus, 0x0, 0xf0 ); @@ -55,7 +56,7 @@ if (!(*cfi_array)->cfi_chips[0]) return -2; /* out of memory */ - cfi_query_structure_t *cfi = &(*cfi_array)->cfi_chips[0]->cfi; + cfi = &(*cfi_array)->cfi_chips[0]->cfi; cfi->identification_string.pri_id_code = CFI_VENDOR_AMD_SCS; cfi->identification_string.pri_vendor_tbl = NULL; |