~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleadmin.cc

Merged from codestyle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
static ulong opt_connect_timeout, opt_shutdown_timeout;
41
41
static char * unix_port=0;
42
42
 
43
 
#ifdef HAVE_SMEM
44
 
static char *shared_memory_base_name=0;
45
 
#endif
46
43
static uint opt_protocol=0;
47
44
static myf error_flags; /* flags to pass to my_printf_error, like ME_BELL */
48
45
 
159
156
  {"set-variable", 'O',
160
157
   "Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value.",
161
158
   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
162
 
#ifdef HAVE_SMEM
163
 
  {"shared-memory-base-name", OPT_SHARED_MEMORY_BASE_NAME,
164
 
   "Base name of shared memory.", (char**) &shared_memory_base_name, (char**) &shared_memory_base_name,
165
 
   0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
166
 
#endif
167
159
  {"silent", 's', "Silently exit if one can't connect to server.",
168
160
   0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
169
161
  {"socket", 'S', "Socket file to use for connection.",
302
294
  }
303
295
  if (opt_protocol)
304
296
    mysql_options(&mysql,MYSQL_OPT_PROTOCOL,(char*)&opt_protocol);
305
 
#ifdef HAVE_SMEM
306
 
  if (shared_memory_base_name)
307
 
    mysql_options(&mysql,MYSQL_SHARED_MEMORY_BASE_NAME,shared_memory_base_name);
308
 
#endif
309
297
  if (default_charset)
310
298
    mysql_options(&mysql, MYSQL_SET_CHARSET_NAME, default_charset);
311
299
  error_flags= (myf)(opt_nobeep ? 0 : ME_BELL);
367
355
  }
368
356
  my_free(opt_password,MYF(MY_ALLOW_ZERO_PTR));
369
357
  my_free(user,MYF(MY_ALLOW_ZERO_PTR));
370
 
#ifdef HAVE_SMEM
371
 
  my_free(shared_memory_base_name,MYF(MY_ALLOW_ZERO_PTR));
372
 
#endif
373
358
  free_defaults(save_argv);
374
359
  my_end(my_end_arg);
375
360
  exit(error ? 1 : 0);