diff options
Diffstat (limited to 'src/utils/pacmd.c')
-rw-r--r-- | src/utils/pacmd.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c index 352a9d855..cf0eb4456 100644 --- a/src/utils/pacmd.c +++ b/src/utils/pacmd.c @@ -99,7 +99,7 @@ int main(int argc, char*argv[]) { char *obuf = NULL; size_t buf_size, ibuf_size, ibuf_index, ibuf_length, obuf_size, obuf_index, obuf_length; char *cli; - pa_bool_t ibuf_eof, obuf_eof, ibuf_closed, obuf_closed; + bool ibuf_eof, obuf_eof, ibuf_closed, obuf_closed; struct pollfd pollfd[3]; struct pollfd *watch_socket, *watch_stdin, *watch_stdout; @@ -190,7 +190,7 @@ int main(int argc, char*argv[]) { obuf_size = PA_MIN(buf_size, pa_pipe_buf(STDOUT_FILENO)); obuf = pa_xmalloc(obuf_size); ibuf_index = ibuf_length = obuf_index = obuf_length = 0; - ibuf_eof = obuf_eof = ibuf_closed = obuf_closed = FALSE; + ibuf_eof = obuf_eof = ibuf_closed = obuf_closed = false; if (argc > 1) { for (i = 1; i < argc; i++) { @@ -206,7 +206,7 @@ int main(int argc, char*argv[]) { } } - ibuf_eof = TRUE; + ibuf_eof = true; } for (;;) { @@ -220,12 +220,12 @@ int main(int argc, char*argv[]) { if (ibuf_length <= 0 && ibuf_eof && !ibuf_closed) { shutdown(fd, SHUT_WR); - ibuf_closed = TRUE; + ibuf_closed = true; } if (obuf_length <= 0 && obuf_eof && !obuf_closed) { shutdown(fd, SHUT_RD); - obuf_closed = TRUE; + obuf_closed = true; } pa_zero(pollfd); @@ -275,13 +275,13 @@ int main(int argc, char*argv[]) { goto quit; } - ibuf_eof = TRUE; + ibuf_eof = true; } else { ibuf_length = (size_t) r; ibuf_index = 0; } } else if (watch_stdin->revents & POLLHUP) - ibuf_eof = TRUE; + ibuf_eof = true; } if (watch_socket) { @@ -295,18 +295,18 @@ int main(int argc, char*argv[]) { goto quit; } - obuf_eof = TRUE; + obuf_eof = true; } else { obuf_length = (size_t) r; obuf_index = 0; } } else if (watch_socket->revents & POLLHUP) - obuf_eof = TRUE; + obuf_eof = true; } if (watch_stdout) { if (watch_stdout->revents & POLLHUP) { - obuf_eof = TRUE; + obuf_eof = true; obuf_length = 0; } else if (watch_stdout->revents & POLLOUT) { ssize_t r; @@ -324,7 +324,7 @@ int main(int argc, char*argv[]) { if (watch_socket) { if (watch_socket->revents & POLLHUP) { - ibuf_eof = TRUE; + ibuf_eof = true; ibuf_length = 0; } if (watch_socket->revents & POLLOUT) { ssize_t r; |