diff options
Diffstat (limited to 'src/hdb/filemap.cc')
| -rw-r--r-- | src/hdb/filemap.cc | 4 |
1 files changed, 2 insertions, 2 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 | } |
