From 5c0403e96329676cf693c9093d9f4b129ce23707 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 17 Nov 2020 15:04:15 -0600 Subject: add todo --- P3/server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'P3') diff --git a/P3/server.c b/P3/server.c index 31c4db0..f6db56d 100644 --- a/P3/server.c +++ b/P3/server.c @@ -154,6 +154,7 @@ void * dispatch(void *arg) { // Function to retrieve the request from the queue, process it and then return a result to the client void * worker(void *arg) { + //TODO: Fix this (gcc does not like this case as void* and int are different sizes) int id = (int) arg; long numbytes; unsigned long long numReqs = 0; @@ -184,7 +185,7 @@ void * worker(void *arg) { readFromDisk(... workerBuf); //use fstat's stat_st to get numbytes? struct stat* oob; - fstat(request->fd, &oob); + fstat(request->fd, oob); numbytes = oob->st_size; //TODO: add return_error as well for when trying to find something that does not exist. return_result(request->fd, getContentType(request->request), workerBuf, numbytes); -- cgit v1.2.3