aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-05-22 00:00:32 +0000
committerrowanbeentje <rowan@beent.je>2013-05-22 00:00:32 +0000
commit09db04621e284c109391efe3b0bbc70b26b043b4 (patch)
treeb3d81290c99d96eb207a0b0352c2481b7bfb6839 /Source/SPDatabaseDocument.m
parent2737ac00c38513d976fda08104a5014221b0c99c (diff)
downloadsequelpro-09db04621e284c109391efe3b0bbc70b26b043b4.tar.gz
sequelpro-09db04621e284c109391efe3b0bbc70b26b043b4.tar.bz2
sequelpro-09db04621e284c109391efe3b0bbc70b26b043b4.zip
- Address further Release/Distribution build warnings
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 10325374..3a887662 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -4152,10 +4152,10 @@ static NSString *SPAlterDatabaseAction = @"SPAlterDatabase";
// Terminate all running BASH commands
for(NSDictionary* cmd in [self runningActivities]) {
- NSInteger pid = [[cmd objectForKey:@"pid"] intValue];
+ NSInteger pid = [[cmd objectForKey:@"pid"] integerValue];
NSTask *killTask = [[NSTask alloc] init];
[killTask setLaunchPath:@"/bin/sh"];
- [killTask setArguments:[NSArray arrayWithObjects:@"-c", [NSString stringWithFormat:@"kill -9 -%ld", pid], nil]];
+ [killTask setArguments:[NSArray arrayWithObjects:@"-c", [NSString stringWithFormat:@"kill -9 -%ld", (long)pid], nil]];
[killTask launch];
[killTask waitUntilExit];
[killTask release];