got rid of off_t

This commit is contained in:
Jean-Francois Dockes
2017-02-28 20:36:01 +01:00
parent 9a9608e00b
commit bde991c08a
17 changed files with 95 additions and 82 deletions
+4 -3
View File
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <stdint.h>
#include <sstream>
#include <list>
@@ -205,11 +206,11 @@ void ResListPager::displayDoc(RclConfig *config, int i, Rcl::Doc& doc,
}
// Size information. We print both doc and file if they differ a lot
off_t fsize = -1, dsize = -1;
int64_t fsize = -1, dsize = -1;
if (!doc.dbytes.empty())
dsize = static_cast<off_t>(atoll(doc.dbytes.c_str()));
dsize = static_cast<int64_t>(atoll(doc.dbytes.c_str()));
if (!doc.fbytes.empty())
fsize = static_cast<off_t>(atoll(doc.fbytes.c_str()));
fsize = static_cast<int64_t>(atoll(doc.fbytes.c_str()));
string sizebuf;
if (dsize > 0) {
sizebuf = displayableBytes(dsize);