From: Jay Freeman (saurik) Date: Sat, 5 Mar 2011 19:42:17 +0000 (-0800) Subject: Drop capitalize from CYHex. X-Git-Tag: v1.1.0%b1~52 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/be45a862ee5609d427a51b20d04599ce902fb52c?ds=inline Drop capitalize from CYHex. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 1b5e4a1b..ce12ef64 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];