Browse Source

Cosmetic change (thanks Harry Porter)

util
Frans Kaashoek 3 years ago
parent
commit
8f58cc7df9
  1. 2
      kernel/console.c

2
kernel/console.c

@ -165,7 +165,7 @@ consoleintr(int c) @@ -165,7 +165,7 @@ consoleintr(int c)
// store for consumption by consoleread().
cons.buf[cons.e++ % INPUT_BUF_SIZE] = c;
if(c == '\n' || c == C('D') || cons.e == cons.r+INPUT_BUF_SIZE){
if(c == '\n' || c == C('D') || cons.e-cons.r == INPUT_BUF_SIZE){
// wake up consoleread() if a whole line (or end-of-file)
// has arrived.
cons.w = cons.e;

Loading…
Cancel
Save