mdbx: use uint64_t or size_t insted of off_t (buggy on Windows).

This commit is contained in:
Leo Yuriev
2017-05-24 18:50:24 +03:00
parent 7ef7e70012
commit af7b468e63
7 changed files with 47 additions and 30 deletions

View File

@@ -70,7 +70,7 @@ bool parse_option(int argc, char *const argv[], int &narg, const char *option,
}
bool parse_option(int argc, char *const argv[], int &narg, const char *option,
size_t &mask, const option_verb *verbs) {
unsigned &mask, const option_verb *verbs) {
const char *list;
if (!parse_option(argc, argv, narg, option, &list))
return false;

View File

@@ -64,7 +64,7 @@ struct option_verb {
};
bool parse_option(int argc, char *const argv[], int &narg, const char *option,
size_t &mask, const option_verb *verbs);
unsigned &mask, const option_verb *verbs);
bool parse_option(int argc, char *const argv[], int &narg, const char *option,
uint64_t &value, const scale_mode scale,
@@ -194,8 +194,8 @@ struct keygen_params_pod {
struct actor_params_pod {
unsigned loglevel;
size_t mode_flags;
size_t table_flags;
unsigned mode_flags;
unsigned table_flags;
uint64_t size;
unsigned test_duration;