@@ -44,7 +44,7 @@ static my_bool option_force=0,interrupted=0,new_line=0,
4444static uint tcp_port = 0 , option_wait = 0 , option_silent=0 , nr_iterations,
4545 opt_count_iterations= 0 ;
4646static ulong opt_connect_timeout, opt_shutdown_timeout;
47- static my_string unix_port=0 ;
47+ static char * unix_port=0 ;
4848#ifdef LATER_HAVE_NDBCLUSTER_DB
4949static my_bool opt_ndbcluster=0 ;
5050static char *opt_ndb_connectstring=0 ;
@@ -132,90 +132,90 @@ static struct my_option my_long_options[] =
132132#endif
133133 {" count" , ' c' ,
134134 " Number of iterations to make. This works with -i (--sleep) only." ,
135- (gptr* ) &nr_iterations, (gptr *) &nr_iterations, 0 , GET_UINT,
135+ (uchar** ) &nr_iterations, (uchar* *) &nr_iterations, 0 , GET_UINT,
136136 REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
137137 {" debug" , ' #' , " Output debug log. Often this is 'd:t:o,filename'." ,
138138 0 , 0 , 0 , GET_STR, OPT_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
139- {" debug-info" , OPT_DEBUG_INFO, " Print some debug info at exit." , (gptr *) &info_flag,
140- (gptr *) &info_flag, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
139+ {" debug-info" , OPT_DEBUG_INFO, " Print some debug info at exit." , (uchar* *) &info_flag,
140+ (uchar* *) &info_flag, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
141141 {" force" , ' f' ,
142142 " Don't ask for confirmation on drop database; with multiple commands, continue even if an error occurs." ,
143- (gptr* ) &option_force, (gptr *) &option_force, 0 , GET_BOOL, NO_ARG, 0 , 0 ,
143+ (uchar** ) &option_force, (uchar* *) &option_force, 0 , GET_BOOL, NO_ARG, 0 , 0 ,
144144 0 , 0 , 0 , 0 },
145145 {" compress" , ' C' , " Use compression in server/client protocol." ,
146- (gptr* ) &opt_compress, (gptr *) &opt_compress, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 ,
146+ (uchar** ) &opt_compress, (uchar* *) &opt_compress, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 ,
147147 0 , 0 , 0 },
148148 {" character-sets-dir" , OPT_CHARSETS_DIR,
149- " Directory where character sets are." , (gptr *) &charsets_dir,
150- (gptr *) &charsets_dir, 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
149+ " Directory where character sets are." , (uchar* *) &charsets_dir,
150+ (uchar* *) &charsets_dir, 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
151151 {" default-character-set" , OPT_DEFAULT_CHARSET,
152- " Set the default character set." , (gptr *) &default_charset,
153- (gptr *) &default_charset, 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
152+ " Set the default character set." , (uchar* *) &default_charset,
153+ (uchar* *) &default_charset, 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
154154 {" help" , ' ?' , " Display this help and exit." , 0 , 0 , 0 , GET_NO_ARG,
155155 NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
156- {" host" , ' h' , " Connect to host." , (gptr* ) &host, (gptr *) &host, 0 , GET_STR,
156+ {" host" , ' h' , " Connect to host." , (uchar** ) &host, (uchar* *) &host, 0 , GET_STR,
157157 REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
158- {" no-beep" , ' b' , " Turn off beep on error." , (gptr *) &opt_nobeep,
159- (gptr *) &opt_nobeep, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
158+ {" no-beep" , ' b' , " Turn off beep on error." , (uchar* *) &opt_nobeep,
159+ (uchar* *) &opt_nobeep, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
160160 {" password" , ' p' ,
161161 " Password to use when connecting to server. If password is not given it's asked from the tty." ,
162162 0 , 0 , 0 , GET_STR, OPT_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
163163#ifdef __WIN__
164164 {" pipe" , ' W' , " Use named pipes to connect to server." , 0 , 0 , 0 , GET_NO_ARG,
165165 NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
166166#endif
167- {" port" , ' P' , " Port number to use for connection." , (gptr *) &tcp_port,
168- (gptr *) &tcp_port, 0 , GET_UINT, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
167+ {" port" , ' P' , " Port number to use for connection." , (uchar* *) &tcp_port,
168+ (uchar* *) &tcp_port, 0 , GET_UINT, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
169169 {" protocol" , OPT_MYSQL_PROTOCOL, " The protocol of connection (tcp,socket,pipe,memory)." ,
170170 0 , 0 , 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
171171 {" relative" , ' r' ,
172172 " Show difference between current and previous values when used with -i. Currently works only with extended-status." ,
173- (gptr* ) &opt_relative, (gptr *) &opt_relative, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 ,
173+ (uchar** ) &opt_relative, (uchar* *) &opt_relative, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 ,
174174 0 , 0 , 0 },
175175 {" set-variable" , ' O' ,
176176 " Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value." ,
177177 0 , 0 , 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
178178#ifdef HAVE_SMEM
179179 {" shared-memory-base-name" , OPT_SHARED_MEMORY_BASE_NAME,
180- " Base name of shared memory." , (gptr* ) &shared_memory_base_name, (gptr *) &shared_memory_base_name,
180+ " Base name of shared memory." , (uchar** ) &shared_memory_base_name, (uchar* *) &shared_memory_base_name,
181181 0 , GET_STR_ALLOC, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
182182#endif
183183 {" silent" , ' s' , " Silently exit if one can't connect to server." ,
184184 0 , 0 , 0 , GET_NO_ARG, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
185185 {" socket" , ' S' , " Socket file to use for connection." ,
186- (gptr* ) &unix_port, (gptr *) &unix_port, 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 ,
186+ (uchar** ) &unix_port, (uchar* *) &unix_port, 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 ,
187187 0 , 0 , 0 },
188188 {" sleep" , ' i' , " Execute commands again and again with a sleep between." ,
189- (gptr* ) &interval, (gptr *) &interval, 0 , GET_INT, REQUIRED_ARG, 0 , 0 , 0 , 0 ,
189+ (uchar** ) &interval, (uchar* *) &interval, 0 , GET_INT, REQUIRED_ARG, 0 , 0 , 0 , 0 ,
190190 0 , 0 },
191191#include < sslopt-longopts.h>
192192#ifndef DONT_ALLOW_USER_CHANGE
193- {" user" , ' u' , " User for login if not current user." , (gptr *) &user,
194- (gptr *) &user, 0 , GET_STR_ALLOC, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
193+ {" user" , ' u' , " User for login if not current user." , (uchar* *) &user,
194+ (uchar* *) &user, 0 , GET_STR_ALLOC, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
195195#endif
196- {" verbose" , ' v' , " Write more information." , (gptr *) &opt_verbose,
197- (gptr *) &opt_verbose, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
196+ {" verbose" , ' v' , " Write more information." , (uchar* *) &opt_verbose,
197+ (uchar* *) &opt_verbose, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
198198 {" version" , ' V' , " Output version information and exit." , 0 , 0 , 0 , GET_NO_ARG,
199199 NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
200200 {" vertical" , ' E' ,
201201 " Print output vertically. Is similar to --relative, but prints output vertically." ,
202- (gptr* ) &opt_vertical, (gptr *) &opt_vertical, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 ,
202+ (uchar** ) &opt_vertical, (uchar* *) &opt_vertical, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 ,
203203 0 , 0 , 0 },
204204 {" wait" , ' w' , " Wait and retry if connection is down." , 0 , 0 , 0 , GET_UINT,
205205 OPT_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
206- {" connect_timeout" , OPT_CONNECT_TIMEOUT, " " , (gptr *) &opt_connect_timeout,
207- (gptr *) &opt_connect_timeout, 0 , GET_ULONG, REQUIRED_ARG, 3600 *12 , 0 ,
206+ {" connect_timeout" , OPT_CONNECT_TIMEOUT, " " , (uchar* *) &opt_connect_timeout,
207+ (uchar* *) &opt_connect_timeout, 0 , GET_ULONG, REQUIRED_ARG, 3600 *12 , 0 ,
208208 3600 *12 , 0 , 1 , 0 },
209- {" shutdown_timeout" , OPT_SHUTDOWN_TIMEOUT, " " , (gptr *) &opt_shutdown_timeout,
210- (gptr *) &opt_shutdown_timeout, 0 , GET_ULONG, REQUIRED_ARG,
209+ {" shutdown_timeout" , OPT_SHUTDOWN_TIMEOUT, " " , (uchar* *) &opt_shutdown_timeout,
210+ (uchar* *) &opt_shutdown_timeout, 0 , GET_ULONG, REQUIRED_ARG,
211211 SHUTDOWN_DEF_TIMEOUT, 0 , 3600 *12 , 0 , 1 , 0 },
212212#ifdef LATER_HAVE_NDBCLUSTER_DB
213213 {" ndbcluster" , OPT_NDBCLUSTER, " "
214- " " , (gptr *) &opt_ndbcluster,
215- (gptr *) &opt_ndbcluster, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
214+ " " , (uchar* *) &opt_ndbcluster,
215+ (uchar* *) &opt_ndbcluster, 0 , GET_BOOL, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
216216 {" ndb-connectstring" , OPT_NDB_CONNECTSTRING, " "
217- " " , (gptr *) &opt_ndb_connectstring,
218- (gptr *) &opt_ndb_connectstring, 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
217+ " " , (uchar* *) &opt_ndb_connectstring,
218+ (uchar* *) &opt_ndb_connectstring, 0 , GET_STR, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
219219#endif
220220 { 0 , 0 , 0 , 0 , 0 , 0 , GET_NO_ARG, NO_ARG, 0 , 0 , 0 , 0 , 0 , 0 }
221221};
0 commit comments