Adjust to recent ObjFW changes.

This commit is contained in:
Jonathan Schleifer 2012-12-19 22:36:14 +01:00
parent 4978c42916
commit 20e111024e
4 changed files with 64 additions and 67 deletions

View file

@ -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)))