Browse Source

Formatting

tags/OPENTRACKER_WITH_BATCHSYNC
erdgeist 11 years ago
parent
commit
933f8d9b52
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      ot_iovec.c

+ 1
- 2
ot_iovec.c View File

@@ -48,9 +48,8 @@ void iovec_fixlast( int *iovec_entries, struct iovec **iovector, void *last_ptr
old_pages = 1 + old_alloc / page_size;
new_pages = 1 + new_alloc / page_size;

if( old_pages != new_pages ) {
if( old_pages != new_pages )
munmap( base + new_pages * page_size, old_alloc - new_pages * page_size );
}
((*iovector)[*iovec_entries - 1 ]).iov_len = new_alloc;
}



Loading…
Cancel
Save