Define struct log separately from log to avoid confusing column breaker

This commit is contained in:
Austin Clements 2011-09-02 15:08:35 -04:00
parent a14c96f825
commit ee1b33065c

5
log.c
View file

@ -38,14 +38,15 @@ struct logheader {
int sector[LOGSIZE]; int sector[LOGSIZE];
}; };
struct { struct log {
struct spinlock lock; struct spinlock lock;
int start; int start;
int size; int size;
int intrans; int intrans;
int dev; int dev;
struct logheader lh; struct logheader lh;
} log; };
struct log log;
static void recover_from_log(void); static void recover_from_log(void);