[pulseaudio-commits] src/utils

Arun Raghavan arun at kemper.freedesktop.org
Sun Feb 12 09:46:14 PST 2012


 src/utils/pacmd.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit e8594e4b8e0f5c2f2f7b8fb2c54cde20bfb8fe06
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date:   Sun Feb 12 23:14:20 2012 +0530

    pacmd: Fix compiler warning
    
    We were comparing an int with a size_t.

diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c
index 802832c..28411d3 100644
--- a/src/utils/pacmd.c
+++ b/src/utils/pacmd.c
@@ -49,7 +49,7 @@ int main(int argc, char*argv[]) {
     struct sockaddr_un sa;
     char *ibuf = 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;
     pa_bool_t ibuf_eof, obuf_eof, ibuf_closed, obuf_closed;
     struct pollfd pollfd[3];
@@ -105,10 +105,10 @@ int main(int argc, char*argv[]) {
         goto fail;
     }
 
-    i = pa_pipe_buf(fd);
-    ibuf_size = PA_MIN(i, pa_pipe_buf(STDIN_FILENO));
+    buf_size = pa_pipe_buf(fd);
+    ibuf_size = PA_MIN(buf_size, pa_pipe_buf(STDIN_FILENO));
     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);
     ibuf_index = ibuf_length = obuf_index = obuf_length = 0;
     ibuf_eof = obuf_eof = ibuf_closed = obuf_closed = FALSE;



More information about the pulseaudio-commits mailing list