diff options
author | erdgeist <> | 2008-11-03 01:27:03 +0000 |
---|---|---|
committer | erdgeist <> | 2008-11-03 01:27:03 +0000 |
commit | 933f8d9b52fbfb013674be97af1c46e01f5bd0be (patch) | |
tree | a0b96b5af9f2811abb727b7cccb9d91059e9c8f5 /ot_iovec.c | |
parent | bb1c5d28056647f12883b83d6a1cea2ad3e6bbab (diff) |
Formatting
Diffstat (limited to 'ot_iovec.c')
-rw-r--r-- | ot_iovec.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 | ||