summaryrefslogtreecommitdiffstats
path: root/polyp/parec-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/parec-simple.c')
-rw-r--r--polyp/parec-simple.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/polyp/parec-simple.c b/polyp/parec-simple.c
index 130627d7..5f5abe11 100644
--- a/polyp/parec-simple.c
+++ b/polyp/parec-simple.c
@@ -30,6 +30,7 @@
#include <polyp/polyplib-simple.h>
#include <polyp/polyplib-error.h>
+#include "gccmacro.h"
#define BUFSIZE 1024
@@ -47,21 +48,21 @@ static ssize_t loop_write(int fd, const void*data, size_t size) {
break;
ret += r;
- data = (uint8_t*) data + r;
+ data = (const uint8_t*) data + r;
size -= r;
}
return ret;
}
-int main(int argc, char*argv[]) {
+int main(PA_GCC_UNUSED int argc, char*argv[]) {
/* The sample type to use */
- static const struct pa_sample_spec ss = {
+ static const pa_sample_spec ss = {
.format = PA_SAMPLE_S16LE,
.rate = 44100,
.channels = 2
};
- struct pa_simple *s = NULL;
+ pa_simple *s = NULL;
int ret = 1;
int error;