sync with mit plan 9 version

This commit is contained in:
rsc 2007-04-21 19:40:55 +00:00
parent 33433b3fde
commit 27d2809820
28 changed files with 456 additions and 371 deletions

View file

@ -674,7 +674,10 @@ bucklook(u8int *score, int otype, u8int *data, int n)
{
int i, r, l, m, h, c, cc, type;
type = vttodisktype(otype);
if(otype == -1)
type = -1;
else
type = vttodisktype(otype);
l = 0;
r = n - 1;
while(l <= r){
@ -692,7 +695,7 @@ bucklook(u8int *score, int otype, u8int *data, int n)
}
}
cc = data[h + IEntryTypeOff];
if(type != cc){
if(type != cc && type != -1){
if(type > cc)
l = m + 1;
else