summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Clements <[email protected]>2011-09-02 15:08:35 -0400
committerAustin Clements <[email protected]>2011-09-02 15:08:35 -0400
commitee1b33065cccc798f502a25d2d741c49a86f63a6 (patch)
treee5aab7aab08c7cc5c1616eb75449aed434d49c79
parenta14c96f825bd06030f82cfe05fbebf9d265f40af (diff)
downloadxv6-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.c5
1 files changed, 3 insertions, 2 deletions
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);