timeshift: fix atomic add problems on i386

This commit is contained in:
Adam Sutton 2013-01-31 11:52:18 +00:00
parent 43ae54c062
commit 432009acc6
3 changed files with 4 additions and 6 deletions

View file

@ -41,7 +41,7 @@ char *timeshift_path;
int timeshift_unlimited_period;
uint32_t timeshift_max_period;
int timeshift_unlimited_size;
size_t timeshift_max_size;
uint64_t timeshift_max_size;
/*
* Intialise global file manager

View file

@ -25,10 +25,8 @@ extern char *timeshift_path;
extern int timeshift_unlimited_period;
extern uint32_t timeshift_max_period;
extern int timeshift_unlimited_size;
extern size_t timeshift_max_size;
extern size_t timeshift_total_size;
extern pthread_mutex_t timeshift_size_lock;
extern uint64_t timeshift_max_size;
extern uint64_t timeshift_total_size;
typedef struct timeshift_status
{

View file

@ -39,7 +39,7 @@ static pthread_t timeshift_reaper_thread;
static pthread_mutex_t timeshift_reaper_lock;
static pthread_cond_t timeshift_reaper_cond;
size_t timeshift_total_size;
uint64_t timeshift_total_size;
/* **************************************************************************
* File reaper thread