forked from Rativel/BurritOS
switching from vec to slice
This commit is contained in:
@@ -65,8 +65,6 @@ impl FileHdr {
|
||||
}
|
||||
|
||||
pub fn re_allocate(&mut self, free_map: &mut BitMap, old_file_size: i32, new_file_size: i32) -> bool {
|
||||
|
||||
openfile::div_round_up(1,1);
|
||||
|
||||
let mut new_num_sectors = openfile::div_round_up(new_file_size, SECTOR_SIZE) - self.num_sectors;
|
||||
self.num_bytes = new_file_size;
|
||||
|
||||
Reference in New Issue
Block a user