diff options
author | Austin Clements <[email protected]> | 2011-09-02 15:08:35 -0400 |
---|---|---|
committer | Austin Clements <[email protected]> | 2011-09-02 15:08:35 -0400 |
commit | ee1b33065cccc798f502a25d2d741c49a86f63a6 (patch) | |
tree | e5aab7aab08c7cc5c1616eb75449aed434d49c79 | |
parent | a14c96f825bd06030f82cfe05fbebf9d265f40af (diff) | |
download | xv6-labs-ee1b33065cccc798f502a25d2d741c49a86f63a6.tar.gz xv6-labs-ee1b33065cccc798f502a25d2d741c49a86f63a6.tar.bz2 xv6-labs-ee1b33065cccc798f502a25d2d741c49a86f63a6.zip |
Define struct log separately from log to avoid confusing column breaker
-rw-r--r-- | log.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |