diff options
author | Maarten Bosmans <mkbosmans@gmail.com> | 2011-03-02 12:41:24 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2011-03-02 15:02:42 +0000 |
commit | 9cbf19b59b3db50f2f91fdf5aa206889d97ed057 (patch) | |
tree | 359eb8332e395fcc1ff4e2b2ba90556e1cd710c9 /src/tests/mainloop-test.c | |
parent | 53695b83dcd15df981b131b2cdd927d9f984a966 (diff) |
Various fixes for build warnings
Diffstat (limited to 'src/tests/mainloop-test.c')
-rw-r--r-- | src/tests/mainloop-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/mainloop-test.c b/src/tests/mainloop-test.c index 3ec6d115..cd54bcfe 100644 --- a/src/tests/mainloop-test.c +++ b/src/tests/mainloop-test.c @@ -48,7 +48,7 @@ static pa_defer_event *de; static void iocb(pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags_t f, void *userdata) { unsigned char c; - (void) read(fd, &c, sizeof(c)); + pa_assert_se(read(fd, &c, sizeof(c)) >= 0); fprintf(stderr, "IO EVENT: %c\n", c < 32 ? '.' : c); a->defer_enable(de, 1); } |