From be45a862ee5609d427a51b20d04599ce902fb52c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 5 Mar 2011 11:42:17 -0800 Subject: Drop capitalize from CYHex. --- MobileCydia.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index 1b5e4a1..ce12ef6 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -941,7 +941,7 @@ static id CYIOGetValue(const char *path, NSString *property) { return [(id) value autorelease]; } -static NSString *CYHex(NSData *data, bool reverse, bool capital) { +static NSString *CYHex(NSData *data, bool reverse) { if (data == nil) return nil; @@ -951,7 +951,7 @@ static NSString *CYHex(NSData *data, bool reverse, bool capital) { char string[length * 2 + 1]; for (size_t i(0); i != length; ++i) - sprintf(string + i * 2, capital ? "%.2X" : "%.2x", bytes[reverse ? length - i - 1 : i]); + sprintf(string + i * 2, "%.2x", bytes[reverse ? length - i - 1 : i]); return [NSString stringWithUTF8String:string]; } @@ -9825,8 +9825,8 @@ int main(int argc, char *argv[]) { _pooled Machine_ = machine; SerialNumber_ = CYIOGetValue("IOService:/", @"IOPlatformSerialNumber"); - ChipID_ = CYHex(CYIOGetValue("IODeviceTree:/chosen", @"unique-chip-id"), true, true); - BBSNum_ = CYHex(CYIOGetValue("IOService:/AppleARMPE/baseband", @"snum"), false, false); + ChipID_ = [CYHex(CYIOGetValue("IODeviceTree:/chosen", @"unique-chip-id"), true) uppercaseString]; + BBSNum_ = CYHex(CYIOGetValue("IOService:/AppleARMPE/baseband", @"snum"), false); UniqueID_ = [[UIDevice currentDevice] uniqueIdentifier]; -- cgit v1.2.3