Permalink
Browse files

grant

  • Loading branch information...
1 parent 34d2bc3 commit 6643e019d15150c6b32a9a0fe5512d8a6ff7a197 @grantborthwick committed Oct 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/userprog/syscall.c
View
@@ -366,7 +366,7 @@ sys_write (int handle, void *usrc_, unsigned size)
static int
sys_seek (int handle, unsigned position)
{
- fd = lookup_fd (handle);
+ struct file_descriptor * fd = lookup_fd (handle);
if (fd!= NULL){
lock_acquire (&fs_lock);
file_seek(fd->file, position);
@@ -379,7 +379,7 @@ sys_seek (int handle, unsigned position)
static int
sys_tell (int handle)
{
- fd = lookup_fd (handle);
+ struct file_descriptor * fd = lookup_fd (handle);
if (fd!= NULL){
lock_acquire (&fs_lock);
file_tell(fd->file);

0 comments on commit 6643e01

Please sign in to comment.