diff options
Diffstat (limited to 'src/test-pull.c')
-rw-r--r-- | src/test-pull.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/test-pull.c b/src/test-pull.c index 7f93906..993b7a3 100644 --- a/src/test-pull.c +++ b/src/test-pull.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <errno.h> #include <stdio.h> #include <assert.h> @@ -29,9 +33,9 @@ static int callback(sa_stream_t *s, sa_event_t e) { return 0; case SA_EVENT_ERROR: { - int e; - ASSERT_SUCCESS(sa_stream_get_event_error(s, &e)); - printf("Error: %s\n", sa_strerror(e)); + int err; + ASSERT_SUCCESS(sa_stream_get_event_error(s, &err)); + printf("Error: %s\n", sa_strerror(err)); return -1; } @@ -62,12 +66,12 @@ int main(int argc, char *argv[]) { ASSERT_SUCCESS(sa_stream_start_thread(s, callback)); sleep(20); - + ASSERT_SUCCESS(sa_stream_stop_thread(s)); ASSERT_SUCCESS(sa_stream_drain(s)); ASSERT_SUCCESS(sa_stream_destroy(s)); - + return 0; } |