summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-30 13:53:51 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit7c2d33392edeb07f14f15c9ad337d9cf4ad63576 (patch)
tree57a1a4d9effc0627221a2374872b0b132372ac6c /src
parent0bb6eac7f9c443017d28be400f5adddf7c486580 (diff)
main: read() returns ssize_t not int
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e99e134..8b77545 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -147,7 +147,8 @@ int main(int /*argc*/, char ** /*argv*/) {
struct Poller p{};
p.add_fd(STDIN_FILENO, [&c](int fd) {
- int buf, ret;
+ int buf;
+ ssize_t ret;
while ((ret = read(fd, &buf, sizeof(buf))) == sizeof(buf)) {
;
}