From 933f8d9b52fbfb013674be97af1c46e01f5bd0be Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 3 Nov 2008 01:27:03 +0000 Subject: [PATCH] Formatting --- ot_iovec.c | 3 +-- 1 file changed, 1 insertion(+), 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 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; }