Changed compiler for 10.5 compatibility

This commit is contained in:
Hendrik Holtmann
2012-08-21 12:57:30 +02:00
parent 275fff1886
commit 6f29638f97
5 changed files with 16 additions and 9 deletions

View File

@ -23,7 +23,7 @@
#import "smcWrapper.h"
#import <CommonCrypto/CommonDigest.h>
NSString * const smc_checksum=@"0becdb25cdf64eb74b001c8a77c5e6b7";
NSString * const smc_checksum=@"2ea544babe8a58dccc1364c920d473c8";
static NSDictionary *tsensors = nil;
@implementation smcWrapper
@ -160,7 +160,8 @@ static NSDictionary *tsensors = nil;
unsigned char result[CC_MD5_DIGEST_LENGTH];
CC_MD5((void *)[d bytes], [d length], result);
NSMutableString *ret = [NSMutableString stringWithCapacity:CC_MD5_DIGEST_LENGTH*2];
for(int i = 0; i<CC_MD5_DIGEST_LENGTH; i++) {
int i;
for(i = 0; i<CC_MD5_DIGEST_LENGTH; i++) {
[ret appendFormat:@"%02x",result[i]];
}
return ret;