summaryrefslogtreecommitdiff
path: root/tools/mysqlmanager.c
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-10-08 16:39:55 +0200
committerserg@serg.mylan <>2005-10-08 16:39:55 +0200
commite91712d9bbd43f2153ed0623a651844de45b7796 (patch)
tree5131856f24706c7b976877506a4c7f7a2615d9e6 /tools/mysqlmanager.c
parentb05a6d8fdadc7117e2931c66ff8a90d6bc476de0 (diff)
downloadmariadb-git-e91712d9bbd43f2153ed0623a651844de45b7796.tar.gz
pthread_handler_decl() changed to be ctags-friendly
(and contain extern "C" when necessary)
Diffstat (limited to 'tools/mysqlmanager.c')
-rw-r--r--tools/mysqlmanager.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c
index 4a5c08be50a..4d507fc3d32 100644
--- a/tools/mysqlmanager.c
+++ b/tools/mysqlmanager.c
@@ -332,8 +332,8 @@ static int client_msg_raw(NET* net,int err_code,int pre,const char* fmt,
static int authenticate(struct manager_thd* thd);
/* returns pointer to end of line */
static char* read_line(struct manager_thd* thd);
-static pthread_handler_decl(process_connection, arg);
-static pthread_handler_decl(process_launcher_messages, arg);
+pthread_handler_t process_connection(void *arg);
+pthread_handler_t process_launcher_messages(void *arg);
static int exec_line(struct manager_thd* thd,char* buf,char* buf_end);
#ifdef DO_STACKTRACE
@@ -1089,8 +1089,7 @@ static void log_msg(const char* fmt, int msg_type, va_list args)
pthread_mutex_unlock(&lock_log);
}
-static pthread_handler_decl(process_launcher_messages,
- args __attribute__((unused)))
+pthread_handler_t process_launcher_messages(void *arg __attribute__((unused)))
{
my_thread_init();
for (;!in_shutdown;)
@@ -1146,7 +1145,7 @@ static pthread_handler_decl(process_launcher_messages,
return 0;
}
-static pthread_handler_decl(process_connection,arg)
+pthread_handler_t process_connection(void *arg)
{
struct manager_thd* thd = (struct manager_thd*)arg;
my_thread_init();