X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/0be9bc21d57bdbd18806ceae03289a0bde636e30..b453e13edef8be95d70d837466e911b883faf476:/src/tests/pacat-simple.c diff --git a/src/tests/pacat-simple.c b/src/tests/pacat-simple.c index b26e4b68..7d119c44 100644 --- a/src/tests/pacat-simple.c +++ b/src/tests/pacat-simple.c @@ -3,7 +3,7 @@ PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2 of the License, + by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. PulseAudio is distributed in the hope that it will be useful, but @@ -29,11 +29,10 @@ #include #include -#include #define BUFSIZE 1024 -int main(PA_GCC_UNUSED int argc, char*argv[]) { +int main(int argc, char*argv[]) { /* The Sample format to use */ static const pa_sample_spec ss = { @@ -94,7 +93,7 @@ int main(PA_GCC_UNUSED int argc, char*argv[]) { } /* ... and play it */ - if (pa_simple_write(s, buf, r, &error) < 0) { + if (pa_simple_write(s, buf, (size_t) r, &error) < 0) { fprintf(stderr, __FILE__": pa_simple_write() failed: %s\n", pa_strerror(error)); goto finish; }