From 18301dfca56ba8545549e80f84423d83a46c6b64 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 2 Oct 2007 20:26:08 +0000 Subject: a lot of minor cleanups git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@36 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce --- src/test-pull.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/test-pull.c') 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 +#endif + #include #include #include @@ -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; } -- cgit