summaryrefslogtreecommitdiffstats
path: root/src/threads/thread.h
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-02-15 16:00:40 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-02-15 16:00:40 +0100
commit6c0df53eacd6fa9b03ea3f6cfbae1bf69bf3f474 (patch)
tree5b08aca0705d436e4ea0d2807d5dc86dbd845754 /src/threads/thread.h
parentd83fcc30717f4e687c78bbc7896244643a2e8e4d (diff)
downloadpintos-6c0df53eacd6fa9b03ea3f6cfbae1bf69bf3f474.tar.gz
use struct **file instead of struct *fdlab1
Storing the null pointer to mark active == false accomplishes the same thing with less storage.
Diffstat (limited to 'src/threads/thread.h')
-rw-r--r--src/threads/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threads/thread.h b/src/threads/thread.h
index fc2029b..e3c426d 100644
--- a/src/threads/thread.h
+++ b/src/threads/thread.h
@@ -98,7 +98,7 @@ struct thread
#ifdef USERPROG
/* Owned by userprog/process.c. */
uint32_t *pagedir; /* Page directory. */
- struct fd *fds; /* Pointer to array of file descriptors. */
+ struct file **fds; /* Pointer to array of file descriptors. */
#endif
/* Owned by thread.c. */