Skip to content

Commit 4c75ee3

Browse files
committed
Fixing a few warnings in sample projects
1 parent 510bd9c commit 4c75ee3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

GCD/Xcode/ConnectTest/Desktop/ConnectTest/ConnectTestAppDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ - (void)socketDidSecure:(GCDAsyncSocket *)sock
141141

142142
- (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
143143
{
144-
DDLogInfo(@"socket:%p didWriteDataWithTag:%d", sock, tag);
144+
DDLogInfo(@"socket:%p didWriteDataWithTag:%ld", sock, tag);
145145
}
146146

147147
- (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
148148
{
149-
DDLogInfo(@"socket:%p didReadData:withTag:%d", sock, tag);
149+
DDLogInfo(@"socket:%p didReadData:withTag:%ld", sock, tag);
150150
}
151151

152152
- (void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err

GCD/Xcode/ConnectTest/Mobile/ConnectTest/ConnectTestAppDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ - (void)socketDidSecure:(GCDAsyncSocket *)sock
232232

233233
- (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
234234
{
235-
DDLogInfo(@"socket:%p didWriteDataWithTag:%d", sock, tag);
235+
DDLogInfo(@"socket:%p didWriteDataWithTag:%ld", sock, tag);
236236
}
237237

238238
- (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
239239
{
240-
DDLogInfo(@"socket:%p didReadData:withTag:%d", sock, tag);
240+
DDLogInfo(@"socket:%p didReadData:withTag:%ld", sock, tag);
241241

242242
NSString *httpResponse = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
243243

0 commit comments

Comments
 (0)