Permalink
Browse files

fix naming of method that guesses version

  • Loading branch information...
1 parent 48b9ae1 commit aa6569eb6b87e986f79feb0e6d8e40bbfca055ab @i-rinat committed Nov 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 reiserfs.hpp
View
@@ -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;
}
@@ -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;
@@ -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()) {

0 comments on commit aa6569e

Please sign in to comment.