mirror of https://github.com/getdnsapi/getdns.git
Update examples to compile.
This commit is contained in:
parent
7f94ff61da
commit
1be26c3c76
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue