Skip to content
Snippets Groups Projects
Commit ee1b3306 authored by Austin Clements's avatar Austin Clements
Browse files

Define struct log separately from log to avoid confusing column breaker

parent a14c96f8
No related branches found
No related tags found
No related merge requests found
...@@ -38,14 +38,15 @@ struct logheader { ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment