diff options
author | unknown <monty@hundin.mysql.fi> | 2002-03-06 22:12:08 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-03-06 22:12:08 +0200 |
commit | 749246cc2933b6fd74dd8c171de52d87d7bd75bd (patch) | |
tree | 35c61fb9483cbe657cb2209e53f24c6366e93f3e /mysys/my_getopt.c | |
parent | b707a1ab6b3e1c1fed2570f91da0e22715542493 (diff) | |
download | mariadb-git-749246cc2933b6fd74dd8c171de52d87d7bd75bd.tar.gz |
Portability fixes
Fix bug when using option groups
libmysql/libmysql.c:
Fix bug when using option groups
myisam/myisamchk.c:
Portability fix
mysys/my_getopt.c:
Portability fix
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r-- | mysys/my_getopt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index a28d3dd4e3c..5ec26e3de3f 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -14,7 +14,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <my_config.h> #include <my_global.h> #include <m_string.h> #include <stdlib.h> @@ -452,7 +451,7 @@ static void init_variables(const struct my_option *options) { if (options->var_type == GET_LONG) *((long*) options->u_max_value)= *((long*) options->value)= - options->def_value; + (long) options->def_value; else if (options->var_type == GET_LL) *((longlong*) options->u_max_value)= *((longlong*) options->value)= options->def_value; |