From 1be26c3c768c2f9308e53db3ef3342abc8f05c53 Mon Sep 17 00:00:00 2001 From: Neel Goyal Date: Tue, 3 Sep 2013 12:12:12 -0400 Subject: [PATCH] Update examples to compile. --- src/example/example_all_functions.c | 8 ++++---- src/example/example_synchronous.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/example/example_all_functions.c b/src/example/example_all_functions.c index afeec509..eb81736c 100644 --- a/src/example/example_all_functions.c +++ b/src/example/example_all_functions.c @@ -104,7 +104,7 @@ retregular = getdns_general_sync( uint16arg, dictarg, uint32ptrarg, - dictarg + &dictarg ); retregular = getdns_address_sync( @@ -112,7 +112,7 @@ retregular = getdns_address_sync( charstararg, dictarg, uint32ptrarg, - dictarg + &dictarg ); retregular = getdns_hostname_sync( @@ -120,7 +120,7 @@ retregular = getdns_hostname_sync( dictarg, dictarg, uint32ptrarg, - dictarg + &dictarg ); retregular = getdns_service_sync( @@ -128,7 +128,7 @@ retregular = getdns_service_sync( charstararg, dictarg, uint32ptrarg, - dictarg + &dictarg ); getdns_free_sync_request_memory( diff --git a/src/example/example_synchronous.c b/src/example/example_synchronous.c index 9f7b813a..06150c0b 100644 --- a/src/example/example_synchronous.c +++ b/src/example/example_synchronous.c @@ -70,7 +70,7 @@ main() /* Make the call */ getdns_return_t dns_request_return = getdns_general_sync(this_context, this_name, this_request_type, - this_extensions, &this_response_length, this_response); + this_extensions, &this_response_length, &this_response); if (dns_request_return == GETDNS_RETURN_BAD_DOMAIN_NAME) { fprintf(stderr, "A bad domain name was used: %s. Exiting.", this_name);