Redo makefiles.
[pintos-anon] / src / filesys / file.c
index 8969e179e093ec6c9fd540e995867cfb08ba198f..a40c07356e2a9de62ea1bc118cb05a8ec0e083fa 100644 (file)
@@ -1,10 +1,10 @@
 #include "file.h"
-#include "debug.h"
-#include "lib.h"
-#include "malloc.h"
 #include "directory.h"
 #include "filehdr.h"
 #include "filesys.h"
+#include "lib/debug.h"
+#include "lib/lib.h"
+#include "threads/malloc.h"
 
 bool
 file_open (struct file *file, disk_sector_t hdr_sector) 
@@ -119,7 +119,6 @@ file_write_at (struct file *file, const void *buffer_, off_t size,
       file_ofs += chunk_size;
       bytes_written += chunk_size;
     }
-  free (file->bounce);
 
   return bytes_written;
 }