diff options
author | He Zhenxing <zhenxing.he@sun.com> | 2009-10-02 16:40:06 +0800 |
---|---|---|
committer | He Zhenxing <zhenxing.he@sun.com> | 2009-10-02 16:40:06 +0800 |
commit | b92d459d118287f9308a61cecd29bd7656ff811d (patch) | |
tree | 9faad92f9f32392fd8020b3e2acdbaac7057e1b6 /mysys/default.c | |
parent | 79faadd54d5360ad0d2a480f4dcdc1757fe567f4 (diff) | |
download | mariadb-git-b92d459d118287f9308a61cecd29bd7656ff811d.tar.gz |
Backport post fix compiler warnings and test failures for BUG#25192 BUG#12190
Diffstat (limited to 'mysys/default.c')
-rw-r--r-- | mysys/default.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/default.c b/mysys/default.c index c610b57c6d1..6468cf2b35d 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -478,7 +478,7 @@ int my_load_defaults(const char *conf_file, const char **groups, res= (char**) (ptr+sizeof(alloc)); res[0]= **argv; /* Copy program name */ /* set arguments separator */ - res[1]= args_separator; + res[1]= (char *)args_separator; for (i=2 ; i < (uint) *argc ; i++) res[i]=argv[0][i]; res[i]=0; /* End pointer */ @@ -534,7 +534,7 @@ int my_load_defaults(const char *conf_file, const char **groups, /* set arguments separator for arguments from config file and command line */ - res[args.elements+1]= args_separator; + res[args.elements+1]= (char *)args_separator; if (*argc) memcpy((uchar*) (res+1+args.elements+1), (char*) ((*argv)+1), |