Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0bb6eac
)
main: read() returns ssize_t not int
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Fri, 30 Jun 2017 11:53:51 +0000
(13:53 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000
(17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
e99e134
..
8b77545
100644
(file)
--- 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)) {
;
}