From f709199d5b4fd97e509231a3f502ea6716dc4720 Mon Sep 17 00:00:00 2001 From: Glen Wiley Date: Mon, 3 Feb 2014 17:02:53 -0500 Subject: [PATCH] updated unbound compile steps --- README.md | 4 ++-- src/example/example-simple-answers.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3726753a..73d8f31c 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,9 @@ Assuming that the getdns sources are in a diretory named getdns in your home dir ``` # mkdir unbound # cd unbound -# svn export -r 3023 http://unbound.nlnetlabs.nl/svn/trunk +# svn export -r 3069 http://unbound.nlnetlabs.nl/svn/trunk # cd trunk -# ./configure --with-libevent --with-libunbound-only +# ./configure --with-libevent --with-libunbound-only --enable-event-api ### add --disable-gost --disable-ecdsa if elliptic curves are disabled for you. # make # make install diff --git a/src/example/example-simple-answers.c b/src/example/example-simple-answers.c index a2a3b375..317a9cf2 100644 --- a/src/example/example-simple-answers.c +++ b/src/example/example-simple-answers.c @@ -190,8 +190,8 @@ main(int argc, char *argv[]) dispatch_return = event_base_dispatch(this_event_base); - UNUSED_PARAM(dispatch_return); - // TODO: check the return value above + if(dispatch_return < 0) + fprintf(stderr, "event_base_dispatch() failed, returned %d\n", dispatch_return); } /* Clean up */