Adjust to recent ObjFW changes.
This commit is contained in:
parent
4978c42916
commit
20e111024e
4 changed files with 64 additions and 67 deletions
|
@ -212,9 +212,9 @@
|
|||
host: domain];
|
||||
|
||||
answer = [self allocMemoryWithSize: of_pagesize];
|
||||
answerLen = res_nsearch(&resState, [request cStringWithEncoding:
|
||||
OF_STRING_ENCODING_NATIVE], ns_c_in, ns_t_srv, answer,
|
||||
(int)of_pagesize);
|
||||
answerLen = res_nsearch(&resState,
|
||||
[request cStringUsingEncoding: OF_STRING_ENCODING_NATIVE],
|
||||
ns_c_in, ns_t_srv, answer, (int)of_pagesize);
|
||||
|
||||
if ((answerLen == -1) && ((h_errno == HOST_NOT_FOUND) ||
|
||||
(h_errno == NO_DATA)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue