Permalink
Browse files

On 64-bit only there's no need to cast to long types

  • Loading branch information...
1 parent 2666341 commit dd396f87ffa6bbc74a03002689f136d1e1ecd230 @eofster eofster committed Dec 6, 2012
Showing with 8 additions and 11 deletions.
  1. +1 −1 Classes/AKSIPURI.m
  2. +4 −4 Classes/AKSIPUserAgent.m
  3. +2 −5 Classes/ActiveCallViewController.m
  4. +1 −1 Classes/AppController.m
View
@@ -183,7 +183,7 @@ - (void)dealloc {
- (NSString *)description {
NSString *SIPAddressWithPort = [self SIPAddress];
if ([self port] > 0) {
- SIPAddressWithPort = [SIPAddressWithPort stringByAppendingFormat:@":%ld", (long)[self port]];
+ SIPAddressWithPort = [SIPAddressWithPort stringByAppendingFormat:@":%ld", [self port]];
}
if ([[self displayName] length] > 0) {
View
@@ -407,14 +407,14 @@ - (void)ak_start {
} else {
userAgentConfig.outbound_proxy[0]
= [[NSString stringWithFormat:@"sip:%@:%lu",
- [self outboundProxyHost], (unsigned long)[self outboundProxyPort]] pjString];
+ [self outboundProxyHost], [self outboundProxyPort]] pjString];
}
}
if ([[self STUNServerHost] length] > 0) {
userAgentConfig.stun_host = [[NSString stringWithFormat:@"%@:%lu",
- [self STUNServerHost], (unsigned long)[self STUNServerPort]] pjString];
+ [self STUNServerHost], [self STUNServerPort]] pjString];
}
userAgentConfig.user_agent = [[self userAgentString] pjString];
@@ -659,7 +659,7 @@ - (BOOL)addAccount:(AKSIPAccount *)anAccount withPassword:(NSString *)aPassword
accountConfig.proxy[0] = [[NSString stringWithFormat:@"sip:%@", [anAccount proxyHost]] pjString];
} else {
accountConfig.proxy[0] = [[NSString stringWithFormat:@"sip:%@:%lu",
- [anAccount proxyHost], (unsigned long)[anAccount proxyPort]] pjString];
+ [anAccount proxyHost], [anAccount proxyPort]] pjString];
}
}
@@ -953,7 +953,7 @@ - (NSString *)stringForSIPResponseCode:(NSInteger)responseCode {
theString = @"Not Acceptable";
break;
default:
- theString = [NSString stringWithFormat:@"Response code: %ld", (long)responseCode];
+ theString = [NSString stringWithFormat:@"Response code: %ld", responseCode];
break;
}
@@ -169,14 +169,11 @@ - (void)callTimerTick:(NSTimer *)theTimer {
if (seconds < 3600) {
[[self callController] setStatus:[NSString stringWithFormat:@"%02ld:%02ld",
- (unsigned long)((seconds / 60) % 60),
- (unsigned long)(seconds % 60)]];
+ (seconds / 60) % 60, seconds % 60]];
} else {
[[self callController]
setStatus:[NSString stringWithFormat:@"%02ld:%02ld:%02ld",
- (unsigned long)((seconds / 3600) % 24),
- (unsigned long)((seconds / 60) % 60),
- (unsigned long)(seconds % 60)]];
+ (seconds / 3600) % 24, (seconds / 60) % 60, seconds % 60]];
}
}
View
@@ -831,7 +831,7 @@ - (void)updateAccountsMenuItems {
}
if (accountNumber < 10) {
// Only add key equivalents for Command-[1..9].
- [menuItem setKeyEquivalent:[NSString stringWithFormat:@"%lu", (long)accountNumber]];
+ [menuItem setKeyEquivalent:[NSString stringWithFormat:@"%lu", accountNumber]];
}
[itemsArray addObject:menuItem];
accountNumber++;

0 comments on commit dd396f8

Please sign in to comment.