Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

grant

  • Loading branch information...
commit 6643e019d15150c6b32a9a0fe5512d8a6ff7a197 1 parent 34d2bc3
@grantborthwick authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/userprog/syscall.c
View
4 src/userprog/syscall.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.