cvs server: Diffing .
Index: ata-sim.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/test/fat/ata-sim.c,v
retrieving revision 1.9
diff -r1.9 ata-sim.c
11c11
< int ata_read_sectors(unsigned long start, unsigned char count, void* buf)
---
> int ata_read_sectors(unsigned long start, unsigned int count, void* buf)
14,15c14,15
<         DEBUGF("[Reading %d blocks: 0x%lx to 0x%lx]\n",
<                count, start, start+count-1); 
---
>         DEBUGF("[Reading %d blocks: 0x%lx to 0x%lx, buf:%08lx]\n",
>                count, start, start+count-1, buf); 
17c17
<         DEBUGF("[Reading block 0x%lx]\n", start); 
---
>         DEBUGF("[Reading block 0x%lx, buf:%08lx]\n", start, buf); 
23c23
<     if(!fread(buf,BLOCK_SIZE,count,file)) {
---
>     if(fread(buf,BLOCK_SIZE,count,file) != count) {
31c31
< int ata_write_sectors(unsigned long start, unsigned char count, void* buf)
---
> int ata_write_sectors(unsigned long start, unsigned int count, void* buf)
34,35c34,35
<         DEBUGF("[Writing %d blocks: 0x%lx to 0x%lx]\n",
<                count, start, start+count-1); 
---
>         DEBUGF("[Writing %d blocks: 0x%lx to 0x%lx, buf:%08lx]\n",
>                count, start, start+count-1, buf); 
37c37
<         DEBUGF("[Writing block 0x%lx]\n", start); 
---
>         DEBUGF("[Writing block 0x%lx, buf:%08lx]\n", start, buf); 
46c46
<     if(!fwrite(buf,BLOCK_SIZE,count,file)) {
---
>     if(fwrite(buf,BLOCK_SIZE,count,file) != count) {
Index: main.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/test/fat/main.c,v
retrieving revision 1.15
diff -r1.15 main.c
87c87
< 
---
> #define BUFFERSZ 8192
90c90
<     char text[8192];
---
>     char text[BUFFERSZ+1];
103c103
<         int len = num > sizeof text ? sizeof text : num;
---
>         int len = num > BUFFERSZ ? BUFFERSZ : num;
Index: test.sh
===================================================================
RCS file: /cvsroot/rockbox/firmware/test/fat/test.sh,v
retrieving revision 1.5
diff -r1.5 test.sh
34c34
<     rm $RESULT
---
>     rm -f $RESULT

