Mercurial > hg > audiodb
diff query.cpp @ 256:4dcb09f5fe85
Commit patch deprecating the --size argument, replacing it with
--ntracks, --datadims and --datasize.
These names are not ideal, but will serve for now.
author | mas01cr |
---|---|
date | Wed, 16 Apr 2008 09:59:43 +0000 |
parents | a6ee49f10296 |
children | 210b2f661b88 |
line wrap: on
line diff
--- a/query.cpp Sat Apr 12 13:28:30 2008 +0000 +++ b/query.cpp Wed Apr 16 09:59:43 2008 +0000 @@ -55,7 +55,7 @@ // return ordinal position of key in keyTable unsigned audioDB::getKeyPos(char* key){ for(unsigned k=0; k<dbH->numFiles; k++) - if(strncmp(fileTable + k*O2_FILETABLESIZE, key, strlen(key))==0) + if(strncmp(fileTable + k*O2_FILETABLE_ENTRY_SIZE, key, strlen(key))==0) return k; error("Key not found",key); return O2_ERR_KEYNOTFOUND;