summaryrefslogtreecommitdiff
path: root/src/hdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdb')
-rw-r--r--src/hdb/filemap.cc4
-rw-r--r--src/hdb/filemap.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/hdb/filemap.cc b/src/hdb/filemap.cc
index b40644f..35cff60 100644
--- a/src/hdb/filemap.cc
+++ b/src/hdb/filemap.cc
@@ -280,9 +280,9 @@ void filemap::lock()
280{ 280{
281 if(hd) { 281 if(hd) {
282 MLOCK(mutex); 282 MLOCK(mutex);
283 if((volatile long&)hd->lock) { 283 if((volatile unsigned int&)hd->lock) {
284 time_t end=time(0)+TIMEOUT; 284 time_t end=time(0)+TIMEOUT;
285 while((volatile long&)hd->lock&&time(0)<end); 285 while((volatile unsigned int&)hd->lock&&time(0)<end);
286 } 286 }
287 hd->lock.set(1); 287 hd->lock.set(1);
288 } 288 }
diff --git a/src/hdb/filemap.h b/src/hdb/filemap.h
index d6af7eb..dd58c42 100644
--- a/src/hdb/filemap.h
+++ b/src/hdb/filemap.h
@@ -49,7 +49,7 @@ public:
49 void add(int h) { n=htonl(ntohl(n)+h); } 49 void add(int h) { n=htonl(ntohl(n)+h); }
50 int get() const { return ntohl(n); } 50 int get() const { return ntohl(n); }
51private: 51private:
52 long n; 52 unsigned int n;
53}; 53};
54 54
55////////////////////////////////////////////////////// 55//////////////////////////////////////////////////////