ObjFW  Check-in [214e46a10f]

Overview
Comment:Make GCC happy
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 214e46a10fcacc634b65416332668b47e4ec2f5ae90175f64c99c5ae0041ac74
User & Date: js on 2018-12-22 18:13:42
Other Links: manifest | tags
Context
2018-12-28
14:58
ofhttp: Allow reading /etc/ssl from the sandbox check-in: 632999a7ab user: js tags: trunk
2018-12-22
18:13
Make GCC happy check-in: 214e46a10f user: js tags: trunk
00:29
OFDNSResolver: Use a delegate for async operations check-in: 0afb04d93c user: js tags: trunk
Changes

Modified src/OFDNSResolver.m from [2001e1cd19] to [7b4ba10f06].

2125
2126
2127
2128
2129
2130
2131
2132

2133
2134
2135
2136
2137
2138
2139
2125
2126
2127
2128
2129
2130
2131

2132
2133
2134
2135
2136
2137
2138
2139







-
+







			[addresses addItem: &address];
		}

		[addresses makeImmutable];

		if ([addresses count] == 0) {
			id exception = nil;
			of_dns_resource_record_type_t recordType;
			of_dns_resource_record_type_t recordType = 0;

			switch (addressFamily) {
			case OF_SOCKET_ADDRESS_FAMILY_ANY:
				recordType = OF_DNS_RESOURCE_RECORD_TYPE_ALL;
				break;
			case OF_SOCKET_ADDRESS_FAMILY_IPV4:
				recordType = OF_DNS_RESOURCE_RECORD_TYPE_A;

Modified utils/ofdns/OFDNS.m from [1dc603e93a] to [3ba174823c].

27
28
29
30
31
32
33
34
35
36



37
38
39
40
41
42
43
27
28
29
30
31
32
33



34
35
36
37
38
39
40
41
42
43







-
-
-
+
+
+







@end

OF_APPLICATION_DELEGATE(OFDNS)

@implementation OFDNS
-	(void)resolver: (OFDNSResolver *)resolver
  didResolveDomainName: (OFString *)domainName
	 answerRecords: (OFArray *)answerRecords
      authorityRecords: (OFArray *)authorityRecords
     additionalRecords: (OFArray *)additionalRecords
	 answerRecords: (of_dns_resolver_records_t)answerRecords
      authorityRecords: (of_dns_resolver_records_t)authorityRecords
     additionalRecords: (of_dns_resolver_records_t)additionalRecords
	     exception: (id)exception
{
	if (exception != nil) {
		[of_stderr writeFormat: @"Failed to resolve: %@\n", exception];
		[OFApplication terminateWithStatus: 1];
	}