Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix naming of method that guesses version
  • Loading branch information
i-rinat committed Nov 26, 2012
1 parent 48b9ae1 commit aa6569e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reiserfs.hpp
Expand Up @@ -211,7 +211,7 @@ class Block {
}
}

int guessType() const {
int guessVersion() const {
if (0 == v1.type || 15 == v1.type) return KEY_V0;
else return KEY_V1;
}
Expand Down Expand Up @@ -260,7 +260,7 @@ class Block {
uint32_t offset_v0() const { return v0.offset; }
uint64_t offset_v1() const { return v1.offset; }
uint64_t offset(int key_version) const {
if (KEY_VGUESS == key_version) key_version = this->guessType();
if (KEY_VGUESS == key_version) key_version = this->guessVersion();
switch (key_version) {
case KEY_V0: return this->offset_v0(); break;
case KEY_V1: return this->offset_v1(); break;
Expand Down Expand Up @@ -297,7 +297,7 @@ class Block {
}
}
int type(int key_version) const {
if (KEY_VGUESS == key_version) key_version = this->guessType();
if (KEY_VGUESS == key_version) key_version = this->guessVersion();
switch (key_version) {
case KEY_V0: {
switch (this->type_v0()) {
Expand Down

0 comments on commit aa6569e

Please sign in to comment.