From bb9c73bda422cc6329115befb69cf4c98bdb1ed8 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 9 Sep 2012 12:26:18 +0000 Subject: [PATCH] Take an int instead of an NSInteger for the Bonjour port --- macosx/BonjourController.h | 2 +- macosx/BonjourController.m | 2 +- macosx/Controller.m | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/macosx/BonjourController.h b/macosx/BonjourController.h index 6d8140618..66d044f4a 100644 --- a/macosx/BonjourController.h +++ b/macosx/BonjourController.h @@ -31,7 +31,7 @@ + (BonjourController *) defaultController; -- (void) startWithPort: (NSInteger) port; +- (void) startWithPort: (int) port; - (void) stop; @end diff --git a/macosx/BonjourController.m b/macosx/BonjourController.m index bf5dd2e31..6a9f8cd2f 100644 --- a/macosx/BonjourController.m +++ b/macosx/BonjourController.m @@ -45,7 +45,7 @@ BonjourController * fDefaultController = nil; [super dealloc]; } -- (void) startWithPort: (NSInteger) port +- (void) startWithPort: (int) port { [self stop]; diff --git a/macosx/Controller.m b/macosx/Controller.m index 097236db6..b55e611c5 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1962,7 +1962,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy NSString * location = [torrent dataLocation]; - NSString *notificationTitle = NSLocalizedString(@"Download Complete", "notification title"); + NSString * notificationTitle = NSLocalizedString(@"Download Complete", "notification title"); if ([NSApp isOnMountainLionOrBetter]) { NSUserNotification * notification = [[NSUserNotificationMtLion alloc] init]; @@ -2028,7 +2028,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy NSString * location = [torrent dataLocation]; - NSString *notificationTitle = NSLocalizedString(@"Seeding Complete", "notification title"); + NSString * notificationTitle = NSLocalizedString(@"Seeding Complete", "notification title"); if ([NSApp isOnMountainLionOrBetter]) { NSUserNotification * notification = [[NSUserNotificationMtLion alloc] init]; @@ -2967,7 +2967,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy case TR_PARSE_OK: [self openFiles: [NSArray arrayWithObject: fullFile] addType: ADD_AUTO forcePath: nil]; - NSString *notificationTitle = NSLocalizedString(@"Torrent File Auto Added", "notification title"); + NSString * notificationTitle = NSLocalizedString(@"Torrent File Auto Added", "notification title"); if ([NSApp isOnMountainLionOrBetter]) { NSUserNotification* notification = [[NSUserNotificationMtLion alloc] init];