From 257b96f8012a82e0fa2fb998e965e0a1712213c9 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Fri, 24 Nov 2017 18:31:06 -0500 Subject: CS3871/assignments/sync: Fixed compiler errors --- sync/reader.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sync/reader.c') diff --git a/sync/reader.c b/sync/reader.c index edecf56..2870d15 100644 --- a/sync/reader.c +++ b/sync/reader.c @@ -4,6 +4,8 @@ #include #include #include +#include +#include int main(argc, argv) @@ -12,8 +14,8 @@ char **argv; { int shmid, i, pid, id; char *mem, filename[50]; - FILE fd; - timeval *s; + FILE *fd; + struct timeval *s; if (argc != 1) { printf("usage: reader [id]\n"); -- cgit v1.1