Browse files

Merge pull request #12 from rorz/master

A couple of minor edits
  • Loading branch information...
2 parents 5cdec1c + cfc0a62 commit 22bfc9f1ec8a5e687cdc40290029e02606c32cb3 @granoff committed Feb 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 Lockbox.m
@@ -13,7 +13,7 @@
#if __has_feature(objc_arc)
#define LOCKBOX_ID __bridge id
-#define LOCKBOX_DICTREF _bridge CFDictionaryRef
+#define LOCKBOX_DICTREF __bridge CFDictionaryRef
#define LOCKBOX_ID id
#define LOCKBOX_DICTREF CFDictionaryRef
@@ -70,7 +70,7 @@ +(BOOL)setObject:(NSString *)obj forKey:(NSString *)key accessibility:(CFTypeRef
NSMutableDictionary *dict = [self _service];
[dict setObject: hierKey forKey: (LOCKBOX_ID) kSecAttrService];
- [dict setObject: accessibility forKey: (LOCKBOX_ID) kSecAttrAccessible];
+ [dict setObject: (LOCKBOX_ID)(accessibility) forKey: (LOCKBOX_ID) kSecAttrAccessible];
[dict setObject: [obj dataUsingEncoding:NSUTF8StringEncoding] forKey: (LOCKBOX_ID) kSecValueData];
status = SecItemAdd ((LOCKBOX_DICTREF) dict, NULL);

0 comments on commit 22bfc9f

Please sign in to comment.