diff options
author | Austin Clements <[email protected]> | 2011-09-07 16:39:27 -0400 |
---|---|---|
committer | Austin Clements <[email protected]> | 2011-09-07 16:39:27 -0400 |
commit | 9b59dc44dca3299321531900254d71dddd87a476 (patch) | |
tree | 35cde7dac0d5571777dae3510b4b8c367bf3065e | |
parent | e64c661ae8b91bd7e858bb1895bef96e6ac2b4bb (diff) | |
download | xv6-labs-9b59dc44dca3299321531900254d71dddd87a476.tar.gz xv6-labs-9b59dc44dca3299321531900254d71dddd87a476.tar.bz2 xv6-labs-9b59dc44dca3299321531900254d71dddd87a476.zip |
Remove unused 'state' variable that broke the build in recent gcc's
-rw-r--r-- | console.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -53,7 +53,7 @@ printint(int xx, int base, int sign) void cprintf(char *fmt, ...) { - int i, c, state, locking; + int i, c, locking; uint *argp; char *s; @@ -65,7 +65,6 @@ cprintf(char *fmt, ...) panic("null fmt"); argp = (uint*)(void*)(&fmt + 1); - state = 0; for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ if(c != '%'){ consputc(c); |