summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Clements <[email protected]>2011-09-07 16:39:27 -0400
committerAustin Clements <[email protected]>2011-09-07 16:39:27 -0400
commit9b59dc44dca3299321531900254d71dddd87a476 (patch)
tree35cde7dac0d5571777dae3510b4b8c367bf3065e
parente64c661ae8b91bd7e858bb1895bef96e6ac2b4bb (diff)
downloadxv6-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/console.c b/console.c
index bc2c167..766dc30 100644
--- a/console.c
+++ b/console.c
@@ -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);