pacmd: Fix compiler warning

We were comparing an int with a size_t.
This commit is contained in:
Arun Raghavan 2012-02-12 23:14:20 +05:30
parent df0e46065c
commit e8594e4b8e

View file

@ -49,7 +49,7 @@ int main(int argc, char*argv[]) {
struct sockaddr_un sa; struct sockaddr_un sa;
char *ibuf = NULL; char *ibuf = NULL;
char *obuf = NULL; char *obuf = NULL;
size_t ibuf_size, ibuf_index, ibuf_length, obuf_size, obuf_index, obuf_length; size_t buf_size, ibuf_size, ibuf_index, ibuf_length, obuf_size, obuf_index, obuf_length;
char *cli; char *cli;
pa_bool_t ibuf_eof, obuf_eof, ibuf_closed, obuf_closed; pa_bool_t ibuf_eof, obuf_eof, ibuf_closed, obuf_closed;
struct pollfd pollfd[3]; struct pollfd pollfd[3];
@ -105,10 +105,10 @@ int main(int argc, char*argv[]) {
goto fail; goto fail;
} }
i = pa_pipe_buf(fd); buf_size = pa_pipe_buf(fd);
ibuf_size = PA_MIN(i, pa_pipe_buf(STDIN_FILENO)); ibuf_size = PA_MIN(buf_size, pa_pipe_buf(STDIN_FILENO));
ibuf = pa_xmalloc(ibuf_size); ibuf = pa_xmalloc(ibuf_size);
obuf_size = PA_MIN(i, pa_pipe_buf(STDOUT_FILENO)); obuf_size = PA_MIN(buf_size, pa_pipe_buf(STDOUT_FILENO));
obuf = pa_xmalloc(obuf_size); obuf = pa_xmalloc(obuf_size);
ibuf_index = ibuf_length = obuf_index = obuf_length = 0; 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;