diff options
author | guilhem@gbichot4.local <> | 2008-02-18 23:29:39 +0100 |
---|---|---|
committer | guilhem@gbichot4.local <> | 2008-02-18 23:29:39 +0100 |
commit | 9e2b31b0268a05a94032ba96c0830536ce983685 (patch) | |
tree | 7bffd7a5bcb1eea8fb0183e3a4e3a40cf6a783a6 /include/my_getopt.h | |
parent | ccd53222d61d25ae2702d87a3b617a1f835eedc7 (diff) | |
download | mariadb-git-9e2b31b0268a05a94032ba96c0830536ce983685.tar.gz |
Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name>
value" error even though the value was correct): a C function in my_getopt.c
was taking bool* in parameter and was called from C++ sql_plugin.cc,
but on some Mac OS X sizeof(bool) is 1 in C and 4 in C++, giving funny
mismatches. Fixed, all other occurences of bool in C are removed, future
ones are blocked by a "C-bool-catcher" in my_global.h (use my_bool).
Diffstat (limited to 'include/my_getopt.h')
-rw-r--r-- | include/my_getopt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/my_getopt.h b/include/my_getopt.h index 14f8e6df95b..50ebe9190d8 100644 --- a/include/my_getopt.h +++ b/include/my_getopt.h @@ -75,8 +75,9 @@ extern void my_getopt_register_get_addr(uchar ** (*func_addr)(const char *, uint const struct my_option *)); ulonglong getopt_ull_limit_value(ulonglong num, const struct my_option *optp, - bool *fix); -longlong getopt_ll_limit_value(longlong, const struct my_option *,bool *fix); + my_bool *fix); +longlong getopt_ll_limit_value(longlong, const struct my_option *, + my_bool *fix); my_bool getopt_compare_strings(const char *s, const char *t, uint length); C_MODE_END |