Fixed compiler warnings.
This commit is contained in:
parent
5384d1efc5
commit
5ad137164f
3 changed files with 6 additions and 4 deletions
|
@ -577,8 +577,8 @@ static int nbw_force(stasis_handle_t * h) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
static int nbw_force_range(stasis_handle_t * h,
|
static int nbw_force_range(stasis_handle_t * h,
|
||||||
off_t start,
|
lsn_t start,
|
||||||
off_t stop) {
|
lsn_t stop) {
|
||||||
nbw_impl * impl = h->impl;
|
nbw_impl * impl = h->impl;
|
||||||
pthread_mutex_lock(&impl->mut);
|
pthread_mutex_lock(&impl->mut);
|
||||||
int ret = nbw_force_range_impl(h, start, stop);
|
int ret = nbw_force_range_impl(h, start, stop);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <stasis/operations/lsmTree.h>
|
#include <stasis/operations/lsmTree.h>
|
||||||
|
#include <stasis/truncation.h>
|
||||||
#include <stasis/constants.h>
|
#include <stasis/constants.h>
|
||||||
// XXX including fixed.h breaks page api encapsulation; we need a "last slot"
|
// XXX including fixed.h breaks page api encapsulation; we need a "last slot"
|
||||||
// call.
|
// call.
|
||||||
|
|
|
@ -100,9 +100,10 @@ extern int errno;
|
||||||
typedef unsigned char byte;
|
typedef unsigned char byte;
|
||||||
//@todo lsn_t should be unsigned.
|
//@todo lsn_t should be unsigned.
|
||||||
// If it were unsigned, it could be typedef'ed from size_t.
|
// If it were unsigned, it could be typedef'ed from size_t.
|
||||||
typedef int64_t lsn_t;
|
// Setting these to int64_t makes printf cranky. :(
|
||||||
|
typedef long long lsn_t;
|
||||||
#define LSN_T_MAX INT64_MAX
|
#define LSN_T_MAX INT64_MAX
|
||||||
typedef int64_t pageid_t;
|
typedef long long pageid_t;
|
||||||
#define PAGEID_T_MAX INT64_MAX
|
#define PAGEID_T_MAX INT64_MAX
|
||||||
|
|
||||||
/*#define DEBUGGING */
|
/*#define DEBUGGING */
|
||||||
|
|
Loading…
Reference in a new issue