summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-05 11:42:17 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:39 -0800
commitbe45a862ee5609d427a51b20d04599ce902fb52c (patch)
tree85940d896a61c0bf4108b95cdb1fea552b6c05f6
parentaa42c612e74d90a819514080fcda534f08184ab1 (diff)
Drop capitalize from CYHex.
-rw-r--r--MobileCydia.mm8
1 files changed, 4 insertions, 4 deletions
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];