null+****@clear*****
null+****@clear*****
2011年 6月 8日 (水) 22:45:21 JST
Kouhei Sutou 2011-06-08 13:45:21 +0000 (Wed, 08 Jun 2011)
New Revision: 72ffcb328a1d44fe5bdf33f855470345bdc6ab1b
Log:
fix build failure on MacOS X.
pthread_self() returns struct _opaque_pthread_t* not integer family type.
So don't cast it to uint.
Reported by @issm. Thanks!!!
Modified files:
ha_mroonga.cc
Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc 2011-06-08 02:22:26 +0000 (2ea390a)
+++ ha_mroonga.cc 2011-06-08 13:45:21 +0000 (2ee8f8e)
@@ -116,7 +116,7 @@ void mrn_logger_func(int level, const char *time, const char *title,
if (mrn_logfile_opened) {
pthread_mutex_lock(&mrn_log_mutex);
fprintf(mrn_logfile, "%s|%c|%08x|%s\n", time,
- *(slev + level), (uint)pthread_self(), msg);
+ *(slev + level), pthread_self(), msg);
fflush(mrn_logfile);
pthread_mutex_unlock(&mrn_log_mutex);
}