summaryrefslogtreecommitdiff
path: root/ot_iovec.c
diff options
context:
space:
mode:
authorerdgeist <>2008-11-03 01:27:03 +0000
committererdgeist <>2008-11-03 01:27:03 +0000
commit933f8d9b52fbfb013674be97af1c46e01f5bd0be (patch)
treea0b96b5af9f2811abb727b7cccb9d91059e9c8f5 /ot_iovec.c
parentbb1c5d28056647f12883b83d6a1cea2ad3e6bbab (diff)
Formatting
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