summaryrefslogtreecommitdiffstats
path: root/tools/testdbv2.c
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-04-25 19:19:25 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-04-25 19:19:25 +0000
commit143a8728bfbae04963edf5f7ef3d96f3484fd30f (patch)
tree8ae6361be30c5029144e4e95bcae0b982eb8f02b /tools/testdbv2.c
parent73f247a9fd48bac9a513364e23a51764716ceec1 (diff)
downloadrockbox-143a8728bfbae04963edf5f7ef3d96f3484fd30f.tar.gz
rockbox-143a8728bfbae04963edf5f7ef3d96f3484fd30f.tar.bz2
rockbox-143a8728bfbae04963edf5f7ef3d96f3484fd30f.zip
Whoops. cleaned up some code leftovers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6349 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/testdbv2.c')
-rw-r--r--tools/testdbv2.c28
1 files changed, 3 insertions, 25 deletions
diff --git a/tools/testdbv2.c b/tools/testdbv2.c
index de2af59f90..a7115a2454 100644
--- a/tools/testdbv2.c
+++ b/tools/testdbv2.c
@@ -197,32 +197,10 @@ printf("Artist Entry Size mismatch.. update the code to correct size.\n");
showfile(header.filestart +
temp2*sizeof(struct FileEntry));
break;
+ default:
+ return;
+ break;
}
} while(1);
- printf("\n");
- fseek(fp,SongEntry.artist,SEEK_SET);
- fread(&ArtistEntry,sizeof(struct ArtistEntry),1,fp);
- printf("Offset: 0x%x\nArtist: %s\n",SongEntry.artist,ArtistEntry.name);
- for(i=0;i<header.albumarraylen;i++) {
- ArtistEntry.album[i]=BE32(ArtistEntry.album[i]);
- printf("Album %d: 0x%x\n",i,ArtistEntry.album[i]);
- }
- printf("\n");
- fseek(fp,SongEntry.file,SEEK_SET);
- fread(&FileEntry,sizeof(struct FileEntry),1,fp);
- FileEntry.hash=BE32(FileEntry.hash);
- FileEntry.tagoffset=BE32(FileEntry.tagoffset);
- FileEntry.rundboffset=BE32(FileEntry.rundboffset);
- printf("Offset: 0x%x\nFilename: %s\nHash: 0x%x\nTag: 0x%x\nRunDB: 0x%x\n",
- SongEntry.file,FileEntry.name,FileEntry.hash,
- FileEntry.tagoffset, FileEntry.rundboffset);
-
- /*fseek(fp,AlbumEntry.artist,SEEK_SET);
- fread(&ArtistEntry,sizeof(struct ArtistEntry),1,fp);
- printf("Offset: 0x%x\nArtist: %s\n",AlbumEntry.artist,ArtistEntry.name);
- for(i=0;i<header.albumarraylen;i++) {
- ArtistEntry.album[i]=BE32(ArtistEntry.album[i]);
- printf("Album %d: 0x%x\n",i,ArtistEntry.album[i]);
- } */
fclose(fp);
}