ObjFW  Check-in [14f74f3c2f]

Overview
Comment:Fix two missing spaces.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 14f74f3c2f6ac8164a0ef52c8c80a36d30c83cb4fe3eb5d7dad90eecfc09aa35
User & Date: js on 2009-04-28 20:31:07
Other Links: manifest | tags
Context
2009-05-01
18:15
Call [super free] on error in init methods. check-in: e9d48d0beb user: js tags: trunk
2009-04-28
20:31
Fix two missing spaces. check-in: 14f74f3c2f user: js tags: trunk
2009-04-26
12:44
A few renames in OFObject. check-in: e959fed010 user: js tags: trunk
Changes

Modified src/OFTCPSocket.m from [59fbba1365] to [5c6eb1441c].

201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
	int s;

	newsock = [OFTCPSocket new];
	addrlen = sizeof(struct sockaddr);

	@try {
		addr = [newsock allocWithSize: sizeof(struct sockaddr)];
	} @catch(id e) {
		[newsock free];
		@throw e;
	}

	if ((s = accept(sock, addr, &addrlen)) == INVALID_SOCKET) {
		[newsock free];
		@throw [OFAcceptFailedException newWithClass: isa];







|







201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
	int s;

	newsock = [OFTCPSocket new];
	addrlen = sizeof(struct sockaddr);

	@try {
		addr = [newsock allocWithSize: sizeof(struct sockaddr)];
	} @catch (id e) {
		[newsock free];
		@throw e;
	}

	if ((s = accept(sock, addr, &addrlen)) == INVALID_SOCKET) {
		[newsock free];
		@throw [OFAcceptFailedException newWithClass: isa];

Modified tests/OFTCPSocket/OFTCPSocket.m from [7883bf415d] to [7ea54c3d3c].

98
99
100
101
102
103
104
105
106
107
108
109
110
111
		else {
			puts("Received INCORRECT string!");
			return 1;
		}
#endif

		[accepted release];
	} @catch(OFException *e) {
		printf("EXCEPTION: %s\n", [e cString]);
		return 1;
	}

	return 0;
}







|






98
99
100
101
102
103
104
105
106
107
108
109
110
111
		else {
			puts("Received INCORRECT string!");
			return 1;
		}
#endif

		[accepted release];
	} @catch (OFException *e) {
		printf("EXCEPTION: %s\n", [e cString]);
		return 1;
	}

	return 0;
}