summaryrefslogtreecommitdiff
path: root/ot_iovec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_iovec.c')
-rw-r--r--ot_iovec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ot_iovec.c b/ot_iovec.c
index 8f9c480..ec0bd12 100644
--- a/ot_iovec.c
+++ b/ot_iovec.c
@@ -48,9 +48,8 @@ void iovec_fixlast( int *iovec_entries, struct iovec **iovector, void *last_ptr
48 old_pages = 1 + old_alloc / page_size; 48 old_pages = 1 + old_alloc / page_size;
49 new_pages = 1 + new_alloc / page_size; 49 new_pages = 1 + new_alloc / page_size;
50 50
51 if( old_pages != new_pages ) { 51 if( old_pages != new_pages )
52 munmap( base + new_pages * page_size, old_alloc - new_pages * page_size ); 52 munmap( base + new_pages * page_size, old_alloc - new_pages * page_size );
53 }
54 ((*iovector)[*iovec_entries - 1 ]).iov_len = new_alloc; 53 ((*iovector)[*iovec_entries - 1 ]).iov_len = new_alloc;
55} 54}
56 55