Commit 0f742616 authored by Alexander Nozdrin's avatar Alexander Nozdrin

Fix compilation failures: get rid of C++ specifics in C-code.

parent 908db264
...@@ -234,7 +234,7 @@ get_one_option(int optid, const struct my_option *opt, ...@@ -234,7 +234,7 @@ get_one_option(int optid, const struct my_option *opt,
case 'p': case 'p':
if (argument == disabled_my_option) if (argument == disabled_my_option)
argument= (char*) ""; // Don't require password argument= (char*) ""; /* Don't require password */
tty_password= 1; tty_password= 1;
add_option= FALSE; add_option= FALSE;
if (argument) if (argument)
......
...@@ -287,7 +287,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -287,7 +287,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break; break;
case 'p': case 'p':
if (argument == disabled_my_option) if (argument == disabled_my_option)
argument= (char*) ""; // Don't require password argument= (char*) ""; /* Don't require password */
if (argument) if (argument)
{ {
char *start = argument; char *start = argument;
......
...@@ -703,7 +703,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -703,7 +703,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
#endif #endif
case 'p': case 'p':
if (argument == disabled_my_option) if (argument == disabled_my_option)
argument= (char*) ""; // Don't require password argument= (char*) ""; /* Don't require password */
if (argument) if (argument)
{ {
char *start=argument; char *start=argument;
......
...@@ -222,7 +222,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -222,7 +222,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
#endif #endif
case 'p': case 'p':
if (argument == disabled_my_option) if (argument == disabled_my_option)
argument= (char*) ""; // Don't require password argument= (char*) ""; /* Don't require password */
if (argument) if (argument)
{ {
char *start=argument; char *start=argument;
......
...@@ -282,7 +282,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -282,7 +282,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break; break;
case 'p': case 'p':
if (argument == disabled_my_option) if (argument == disabled_my_option)
argument= (char*) ""; // Don't require password argument= (char*) ""; /* Don't require password */
if (argument) if (argument)
{ {
char *start=argument; char *start=argument;
......
...@@ -713,7 +713,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -713,7 +713,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break; break;
case 'p': case 'p':
if (argument == disabled_my_option) if (argument == disabled_my_option)
argument= (char*) ""; // Don't require password argument= (char*) ""; /* Don't require password */
if (argument) if (argument)
{ {
char *start= argument; char *start= argument;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment