From: Austin Clements Date: Fri, 2 Sep 2011 19:08:35 +0000 (-0400) Subject: Define struct log separately from log to avoid confusing column breaker X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=ee1b33065cccc798f502a25d2d741c49a86f63a6;p=cs3210-lab0.git Define struct log separately from log to avoid confusing column breaker --- diff --git a/log.c b/log.c index 00a881f..f82a9d3 100644 --- a/log.c +++ b/log.c @@ -38,14 +38,15 @@ struct logheader { int sector[LOGSIZE]; }; -struct { +struct log { struct spinlock lock; int start; int size; int intrans; int dev; struct logheader lh; -} log; +}; +struct log log; static void recover_from_log(void);