Showing
4 changed files
with
6 additions
and
6 deletions
@@ -212,7 +212,7 @@ | @@ -212,7 +212,7 @@ | ||
212 | 212 | ||
213 | + (NSError *)deflateErrorWithCode:(int)code | 213 | + (NSError *)deflateErrorWithCode:(int)code |
214 | { | 214 | { |
215 | - return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of data failed with code %hi",code],NSLocalizedDescriptionKey,nil]]; | 215 | + return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of data failed with code %hi",(short)code],NSLocalizedDescriptionKey,nil]]; |
216 | } | 216 | } |
217 | 217 | ||
218 | @synthesize streamReady; | 218 | @synthesize streamReady; |
@@ -211,7 +211,7 @@ | @@ -211,7 +211,7 @@ | ||
211 | 211 | ||
212 | + (NSError *)inflateErrorWithCode:(int)code | 212 | + (NSError *)inflateErrorWithCode:(int)code |
213 | { | 213 | { |
214 | - return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of data failed with code %hi",code],NSLocalizedDescriptionKey,nil]]; | 214 | + return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of data failed with code %hi",(short)code],NSLocalizedDescriptionKey,nil]]; |
215 | } | 215 | } |
216 | 216 | ||
217 | @synthesize streamReady; | 217 | @synthesize streamReady; |
@@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
98 | [queryParts addObject:[NSString stringWithFormat:@"delimiter=%@",[[self delimiter] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]; | 98 | [queryParts addObject:[NSString stringWithFormat:@"delimiter=%@",[[self delimiter] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]; |
99 | } | 99 | } |
100 | if ([self maxResultCount] > 0) { | 100 | if ([self maxResultCount] > 0) { |
101 | - [queryParts addObject:[NSString stringWithFormat:@"max-keys=%hi",[self maxResultCount]]]; | 101 | + [queryParts addObject:[NSString stringWithFormat:@"max-keys=%hi",(short)[self maxResultCount]]]; |
102 | } | 102 | } |
103 | if ([queryParts count]) { | 103 | if ([queryParts count]) { |
104 | NSString* template = @"%@?%@"; | 104 | NSString* template = @"%@?%@"; |
@@ -161,13 +161,13 @@ static void logNetworkStatus_(const char *name, int line, NetworkStatus status) | @@ -161,13 +161,13 @@ static void logNetworkStatus_(const char *name, int line, NetworkStatus status) | ||
161 | 161 | ||
162 | switch (status) { | 162 | switch (status) { |
163 | case kNotReachable: | 163 | case kNotReachable: |
164 | - statusString = [NSString stringWithString: @"Not Reachable"]; | 164 | + statusString = @"Not Reachable"; |
165 | break; | 165 | break; |
166 | case kReachableViaWWAN: | 166 | case kReachableViaWWAN: |
167 | - statusString = [NSString stringWithString: @"Reachable via WWAN"]; | 167 | + statusString = @"Reachable via WWAN"; |
168 | break; | 168 | break; |
169 | case kReachableViaWiFi: | 169 | case kReachableViaWiFi: |
170 | - statusString = [NSString stringWithString: @"Reachable via WiFi"]; | 170 | + statusString = @"Reachable via WiFi"; |
171 | break; | 171 | break; |
172 | } | 172 | } |
173 | 173 |
-
Please register or login to post a comment