]> Devi Nivas Git - cs3210-lab0.git/commitdiff
Define struct log separately from log to avoid confusing column breaker
authorAustin Clements <amdragon@mit.edu>
Fri, 2 Sep 2011 19:08:35 +0000 (15:08 -0400)
committerAustin Clements <amdragon@mit.edu>
Fri, 2 Sep 2011 19:08:35 +0000 (15:08 -0400)
log.c

diff --git a/log.c b/log.c
index 00a881f12c04e08e6ab374e6d1adfb0762a38b3a..f82a9d3c93d17782d162140aa187b4cf748b5546 100644 (file)
--- 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);