diff options
author | unknown <jani@rhols221.adsl.netsonic.fi> | 2002-06-28 19:30:09 +0300 |
---|---|---|
committer | unknown <jani@rhols221.adsl.netsonic.fi> | 2002-06-28 19:30:09 +0300 |
commit | e0d8d62e3934e85f2fc55e707a4c7eb546104991 (patch) | |
tree | 238d79549e511ff13dfddc389128a4e11c3c7d1d /mysys/my_getopt.c | |
parent | a6ca5cbb9172ba7fb56834d78d6527525a59d1c3 (diff) | |
download | mariadb-git-e0d8d62e3934e85f2fc55e707a4c7eb546104991.tar.gz |
Added interface for first set of dynamic variables.
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r-- | mysys/my_getopt.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index ce9006e03c0..9674359ac4e 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -620,32 +620,32 @@ static void init_variables(const struct my_option *options) { switch (options->var_type) { case GET_BOOL: - *((my_bool*) options->u_max_value)= *((my_bool*) options->value)= - (my_bool) options->def_value; + *((my_bool*) options->u_max_value)= (my_bool) options->max_value; + *((my_bool*) options->value)= (my_bool) options->def_value; break; case GET_INT: - *((int*) options->u_max_value)= *((int*) options->value)= - (int) options->def_value; + *((int*) options->u_max_value)= (int) options->max_value; + *((int*) options->value)= (int) options->def_value; break; case GET_UINT: - *((uint*) options->u_max_value)= *((uint*) options->value)= - (uint) options->def_value; + *((uint*) options->u_max_value)= (uint) options->max_value; + *((uint*) options->value)= (uint) options->def_value; break; case GET_LONG: - *((long*) options->u_max_value)= *((long*) options->value)= - (long) options->def_value; + *((long*) options->u_max_value)= (long) options->max_value; + *((long*) options->value)= (long) options->def_value; break; case GET_ULONG: - *((ulong*) options->u_max_value)= *((ulong*) options->value)= - (ulong) options->def_value; + *((ulong*) options->u_max_value)= (ulong) options->max_value; + *((ulong*) options->value)= (ulong) options->def_value; break; case GET_LL: - *((longlong*) options->u_max_value)= *((longlong*) options->value)= - (longlong) options->def_value; + *((longlong*) options->u_max_value)= (longlong) options->max_value; + *((longlong*) options->value)= (longlong) options->def_value; break; case GET_ULL: - *((ulonglong*) options->u_max_value)= *((ulonglong*) options->value)= - (ulonglong) options->def_value; + *((ulonglong*) options->u_max_value)= (ulonglong) options->max_value; + *((ulonglong*) options->value)= (ulonglong) options->def_value; break; default: /* dummy default to avoid compiler warnings */ break; |