Define struct log separately from log to avoid confusing column breaker
This commit is contained in:
parent
a14c96f825
commit
ee1b33065c
1 changed files with 3 additions and 2 deletions
5
log.c
5
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue