fix 64-bit warning

This commit is contained in:
wilfried 2008-07-01 08:27:18 +00:00
parent 59a03c43e4
commit 0983c4bdbd
2 changed files with 16 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.11 2008/04/16 20:29:38 naddy Exp $
# $OpenBSD: Makefile,v 1.12 2008/07/01 08:27:18 wilfried Exp $
COMMENT= common libraries and data for the MySQL GUI Suites
DISTNAME= mysql-gui-tools-5.0r12
PKGNAME= mysql-gui-common-5.0.6.1r12p1
PKGNAME= mysql-gui-common-5.0.6.1r12p2
CATEGORIES= devel
HOMEPAGE= http://www.mysql.com/products/tools/administrator/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-source_linux_MDispatcher_cc,v 1.1 2008/07/01 08:27:18 wilfried Exp $
--- source/linux/MDispatcher.cc.orig Fri Oct 7 13:31:36 2005
+++ source/linux/MDispatcher.cc Mon Jun 30 15:25:26 2008
@@ -21,8 +21,8 @@
#include <unistd.h>
#include <mysql.h>
-#define MX_LOCK(mx) { if (0) g_message("[%i]:%s: LOCK %s", (int)pthread_self(), __FUNCTION__, #mx); pthread_mutex_lock(mx); }
-#define MX_UNLOCK(mx) { if (0) g_message("[%i]:%s: UNLOCK %s", (int)pthread_self(), __FUNCTION__, #mx); pthread_mutex_unlock(mx); }
+#define MX_LOCK(mx) { if (0) g_message("[%p]:%s: LOCK %s", pthread_self(), __FUNCTION__, #mx); pthread_mutex_lock(mx); }
+#define MX_UNLOCK(mx) { if (0) g_message("[%p]:%s: UNLOCK %s", pthread_self(), __FUNCTION__, #mx); pthread_mutex_unlock(mx); }
void *MDispatcher::thread_func(Fetcher *self)