diff options
author | rsc <devnull@localhost> | 2007-04-21 19:40:55 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-04-21 19:40:55 +0000 |
commit | 27d28098203579f0735ba6400641e9be94eb12f8 (patch) | |
tree | 9e0f390ced0de8c582ef3226c420daa18d16ac24 /src/cmd/venti/srv/index.c | |
parent | 33433b3fde56d9b3ac6de6ee2584416b82bc856f (diff) | |
download | plan9port-27d28098203579f0735ba6400641e9be94eb12f8.tar.gz plan9port-27d28098203579f0735ba6400641e9be94eb12f8.tar.bz2 plan9port-27d28098203579f0735ba6400641e9be94eb12f8.zip |
sync with mit plan 9 version
Diffstat (limited to 'src/cmd/venti/srv/index.c')
-rw-r--r-- | src/cmd/venti/srv/index.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/venti/srv/index.c b/src/cmd/venti/srv/index.c index c69192a7..87361aa9 100644 --- a/src/cmd/venti/srv/index.c +++ b/src/cmd/venti/srv/index.c @@ -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 |