@@ -152,11 +152,11 @@ *bits = ret; return true; } -static struct huffman_tree* +static struct huffman_tree * newTree(void) { struct huffman_tree *tree; if ((tree = malloc(sizeof(*tree))) == NULL) @@ -186,11 +186,11 @@ } tree->value = value; } -static struct huffman_tree* +static struct huffman_tree * constructTree(uint8_t lengths[], uint16_t count) { struct huffman_tree *tree; uint16_t lengthCount[MAX_BITS + 1] = { 0 }; uint16_t code, maxCode = 0, nextCode[MAX_BITS + 1]; @@ -283,21 +283,21 @@ fixedDistTree = constructTree(lengths, 32); } #ifndef DEFLATE64 -+ (instancetype)streamWithStream: (OFStream*)stream ++ (instancetype)streamWithStream: (OFStream *)stream { return [[[self alloc] initWithStream: stream] autorelease]; } - init { OF_INVALID_INIT_METHOD } -- initWithStream: (OFStream*)stream +- initWithStream: (OFStream *)stream { self = [super init]; _stream = [stream retain]; @@ -338,11 +338,11 @@ #else _decompression->slidingWindowMask = 0x7FFF; #endif } -- (size_t)lowlevelReadIntoBuffer: (void*)buffer_ +- (size_t)lowlevelReadIntoBuffer: (void *)buffer_ length: (size_t)length { struct of_deflate_stream_decompression_ivars *ivars = _decompression; uint8_t *buffer = buffer_; uint16_t bits, tmp;