summaryrefslogtreecommitdiffstats
path: root/src/test-pull.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-10-02 20:26:08 +0000
committerLennart Poettering <lennart@poettering.net>2007-10-02 20:26:08 +0000
commit18301dfca56ba8545549e80f84423d83a46c6b64 (patch)
tree28854229666a3054a2985cd040d504e860e0623b /src/test-pull.c
parent0ec595d89d9e1c10cd3f8a3d8dd3a1235c6f5fda (diff)
a lot of minor cleanups
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@36 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
Diffstat (limited to 'src/test-pull.c')
-rw-r--r--src/test-pull.c14
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;
}