From 89898725048851602cde46c4e4774e219b11e08f Mon Sep 17 00:00:00 2001
From: Alex Stratford <alexander3.stratford@live.uwe.ac.uk>
Date: Wed, 4 Dec 2019 15:41:48 +0000
Subject: [PATCH] Fixing incorrect return type

---
 userprog/syscall_filesize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/userprog/syscall_filesize.c b/userprog/syscall_filesize.c
index d0a6f8e..ae8e45a 100644
--- a/userprog/syscall_filesize.c
+++ b/userprog/syscall_filesize.c
@@ -7,7 +7,7 @@
 #include "system_calls.h"
 #include "filesys/file.h"
 
-int syscall_filesize(struct intr_frame *f) {
+void syscall_filesize(struct intr_frame *f) {
 	// pop off first int argument from interrupt frame
 	int file_descriptor = *((int*)f->esp + 1);
 	struct file *file = get_associated_file_pointer(file_descriptor);
-- 
GitLab