aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-09-12 12:48:16 +0000
committerrowanbeentje <rowan@beent.je>2009-09-12 12:48:16 +0000
commit9a0951a7dc44f93226e096423b76de48df2d50a0 (patch)
tree5db6b6f9de49232d2686432ca67f1570db91987e
parent9c4e9b6f6e06f0631183b313351403b133fb4188 (diff)
downloadsequelpro-9a0951a7dc44f93226e096423b76de48df2d50a0.tar.gz
sequelpro-9a0951a7dc44f93226e096423b76de48df2d50a0.tar.bz2
sequelpro-9a0951a7dc44f93226e096423b76de48df2d50a0.zip
- Change the definition of forcePingTimeout to use int instead of NSInteger, matching signal handling function setup and fixing a warning
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index fd2d6444..a9bd92dd 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -38,7 +38,7 @@
#include <mach/mach_time.h>
static jmp_buf pingTimeoutJumpLocation;
-static void forcePingTimeout(NSInteger signalNumber);
+static void forcePingTimeout(int signalNumber);
const NSUInteger kMCPConnectionDefaultOption = CLIENT_COMPRESS | CLIENT_REMEMBER_OPTIONS ;
const char *kMCPConnectionDefaultSocket = MYSQL_UNIX_ADDR;
@@ -611,7 +611,7 @@ static BOOL sTruncateLongFieldInLogs = YES;
* This function is paired with pingConnection, and provides a method of enforcing the connection
* timeout when mysql_ping does not respect the specified limits.
*/
-static void forcePingTimeout(NSInteger signalNumber)
+static void forcePingTimeout(int signalNumber)
{
longjmp(pingTimeoutJumpLocation, 1);
}