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];
};
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);