ObjFW  Check-in [b508aa2625]

Overview
Comment:ofarc: LHAArchive: Fix type mismatch
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b508aa2625bdbe9987cffb1928413418443a51feb8e8844960d5deee63c120f6
User & Date: js on 2018-06-17 18:41:15
Other Links: manifest | tags
Context
2018-06-17
18:43
OFSystemInfoTests: Fix printing the wrong path check-in: 104efe57a2 user: js tags: trunk
18:41
ofarc: LHAArchive: Fix type mismatch check-in: b508aa2625 user: js tags: trunk
18:23
configure: Check for pthread_attr_getschedpolicy() check-in: 839745fa85 user: js tags: trunk
Changes

Modified utils/ofarc/LHAArchive.m from [776323ff54] to [81cd75f326].

415
416
417
418
419
420
421
422
423
424
425
426
427
428
429

		if ([type isEqual: of_file_type_directory])
			[entry setCompressionMethod: @"-lhd-"];

		output = [_archive streamForWritingEntry: entry];

		if ([type isEqual: of_file_type_regular]) {
			size_t written = 0, size = [attributes fileSize];
			int8_t percent = -1, newPercent;

			OFFile *input = [OFFile fileWithPath: fileName
							mode: @"r"];

			while (![input isAtEndOfStream]) {
				ssize_t length = [app







|







415
416
417
418
419
420
421
422
423
424
425
426
427
428
429

		if ([type isEqual: of_file_type_directory])
			[entry setCompressionMethod: @"-lhd-"];

		output = [_archive streamForWritingEntry: entry];

		if ([type isEqual: of_file_type_regular]) {
			uintmax_t written = 0, size = [attributes fileSize];
			int8_t percent = -1, newPercent;

			OFFile *input = [OFFile fileWithPath: fileName
							mode: @"r"];

			while (![input isAtEndOfStream]) {
				ssize_t length = [app