From af19fa462856d517d3a35737389f432fe071a4f6 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 14 Sep 2001 19:50:56 +0300 Subject: Fixed bug in UNION Fixed replication bug in load_master_data BitKeeper/deleted/.del-global.h~e80d28157acfdcb5: Delete: include/global.h Docs/manual.texi: Cleaned up "Things to do in 4.0" mysql-test/r/union.result: New test mysql-test/t/union.test: New test mysys/my_lib.c: Cleanup sql/mysql_priv.h: Fixed replication bug load_master_data sql/sql_base.cc: Fixed bug in UNION sql/sql_db.cc: Fixed replication bug load_master_data sql/sql_parse.cc: Fixed replication bug load_master_data sql/sql_repl.cc: Fixed replication bug load_master_data sql/sql_union.cc: Fixed bug in UNION tools/mysqlmanager.c: Portability fix --- tools/mysqlmanager.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'tools') diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c index 29ff1d50d6c..5b32cc9154e 100644 --- a/tools/mysqlmanager.c +++ b/tools/mysqlmanager.c @@ -22,25 +22,21 @@ #include #include +#include +#include #include #include #include -#include -#include +#include #include #include -#include -#include -#include #include #include +#include +#include #include -#include #include -#include #include -#include -#include #define MANAGER_VERSION "1.0" #define MANAGER_GREETING "MySQL Server Management Daemon v." ## \ @@ -827,7 +823,7 @@ LOG_MSG_FUNC(info,INFO) #ifndef DBUG_OFF LOG_MSG_FUNC(debug,DEBUG) #else -inline void log_debug(char* __attribute__((unused)) fmt,...) {} +void log_debug(char* __attribute__((unused)) fmt,...) {} #endif static pthread_handler_decl(process_launcher_messages, @@ -905,6 +901,7 @@ static pthread_handler_decl(process_connection,arg) } manager_thd_free(thd); pthread_exit(0); + return 0; /* Don't get cc warning */ } static void client_msg_raw(Vio* vio, int err_code, int pre, const char* fmt, @@ -1151,13 +1148,15 @@ static int run_server_loop() { pthread_t th; struct manager_thd *thd; - int client_sock,len; + int client_sock; + uint len; Vio* vio; for (;!shutdown_requested;) { len=sizeof(struct sockaddr_in); - if ((client_sock=accept(manager_sock,(struct sockaddr*)&manager_addr,&len))<0) + if ((client_sock=accept(manager_sock,(struct sockaddr*)&manager_addr, + &len)) <0) { if (shutdown_requested) break; @@ -1531,7 +1530,7 @@ static int daemonize() int main(int argc, char** argv) { char c; - stack_bottom=&c; + stack_bottom= (uchar *) &c; MY_INIT(argv[0]); errfp = stderr; parse_args(argc,argv); -- cgit v1.2.1