Adapt to ObjFW changes

This commit is contained in:
Florian Zeitz 2014-02-03 23:33:35 +01:00
parent d736c927f1
commit 358334a778
3 changed files with 7 additions and 6 deletions

View file

@ -108,7 +108,7 @@
_target = [[OFString alloc]
initWithCString: buffer
encoding: OF_STRING_ENCODING_NATIVE];
encoding: [OFString nativeOSEncoding]];
} @catch (id e) {
[self release];
@throw e;
@ -218,7 +218,7 @@
answer = [self allocMemoryWithSize: pageSize];
answerLen = res_nsearch(&_resState,
[request cStringWithEncoding: OF_STRING_ENCODING_NATIVE],
[request cStringWithEncoding: [OFString nativeOSEncoding]],
ns_c_in, ns_t_srv, answer, (int)pageSize);
if ((answerLen == -1) && ((h_errno == HOST_NOT_FOUND) ||