Browse files

Fix warnings

  • Loading branch information...
1 parent 81bec76 commit 519afedd1d88bf37854a477b47d234c0ad4b9bf6 @soffes soffes committed Jun 14, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 SocketRocket/SRWebSocket.m
View
6 SocketRocket/SRWebSocket.m
@@ -389,7 +389,7 @@ - (void)_HTTPHeadersDidFinish;
if (responseCode >= 400) {
SRFastLog(@"Request failed with response code %d", responseCode);
- [self _failWithError:[NSError errorWithDomain:@"org.lolrus.SocketRocket" code:2132 userInfo:[NSDictionary dictionaryWithObject:[NSString stringWithFormat:@"received bad response code from server %d", responseCode] forKey:NSLocalizedDescriptionKey]]];
+ [self _failWithError:[NSError errorWithDomain:@"org.lolrus.SocketRocket" code:2132 userInfo:[NSDictionary dictionaryWithObject:[NSString stringWithFormat:@"received bad response code from server %ld", responseCode] forKey:NSLocalizedDescriptionKey]]];
return;
}
@@ -458,7 +458,7 @@ - (void)didConnect
CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Upgrade"), CFSTR("websocket"));
CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Connection"), CFSTR("Upgrade"));
CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Sec-WebSocket-Key"), (__bridge CFStringRef)_secKey);
- CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Sec-WebSocket-Version"), (__bridge CFStringRef)[NSString stringWithFormat:@"%d", _webSocketVersion]);
+ CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Sec-WebSocket-Version"), (__bridge CFStringRef)[NSString stringWithFormat:@"%ld", _webSocketVersion]);
CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Origin"), (__bridge CFStringRef)_url.SR_origin);
@@ -774,7 +774,7 @@ - (void)_handleFrameWithData:(NSData *)frameData opCode:(NSInteger)opcode;
[self handlePong];
break;
default:
- [self _closeWithProtocolError:[NSString stringWithFormat:@"Unknown opcode %d", opcode]];
+ [self _closeWithProtocolError:[NSString stringWithFormat:@"Unknown opcode %ld", opcode]];
// TODO: Handle invalid opcode
break;
}

0 comments on commit 519afed

Please sign in to comment.