summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8dde449..fbd4e46 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -173,9 +173,7 @@ int main(int /*argc*/, char ** /*argv*/) {
p.add_fd(STDIN_FILENO, [&c](int fd) {
int buf;
ssize_t ret;
- while ((ret = read(fd, &buf, sizeof(buf))) == sizeof(buf)) {
- ;
- }
+ ret = read(fd, &buf, sizeof(buf));
c.c->debug_dump_current_status();
return ret == 0 ? -1 : 0;
});