Portability fix

sql/set_var.cc:
  Unbreak REPORT_PORT on big endian machines where sizeof long != sizeof int.
This commit is contained in:
unknown 2008-04-01 11:03:12 +02:00
parent f306959153
commit 24ff5760e0

View File

@ -713,7 +713,7 @@ static uchar *slave_get_report_port(THD *thd)
return (uchar*) &thd->sys_var_tmp.long_value; return (uchar*) &thd->sys_var_tmp.long_value;
} }
static sys_var_readonly sys_repl_report_port(&vars, "report_port", OPT_GLOBAL, SHOW_INT, slave_get_report_port); static sys_var_readonly sys_repl_report_port(&vars, "report_port", OPT_GLOBAL, SHOW_LONG, slave_get_report_port);
#endif #endif