~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/client.c

Merged from use-replace-funcs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1998
1998
    drizzle->options.charset_name=my_strdup(arg,MYF(MY_WME));
1999
1999
    break;
2000
2000
  case DRIZZLE_OPT_PROTOCOL:
2001
 
    drizzle->options.protocol= *(uint*) arg;
 
2001
    drizzle->options.protocol= *(const uint*) arg;
2002
2002
    break;
2003
2003
  case DRIZZLE_OPT_USE_REMOTE_CONNECTION:
2004
2004
  case DRIZZLE_OPT_GUESS_CONNECTION:
2008
2008
    drizzle->options.client_ip= my_strdup(arg, MYF(MY_WME));
2009
2009
    break;
2010
2010
  case DRIZZLE_SECURE_AUTH:
2011
 
    drizzle->options.secure_auth= *(bool *) arg;
 
2011
    drizzle->options.secure_auth= *(const bool *) arg;
2012
2012
    break;
2013
2013
  case DRIZZLE_REPORT_DATA_TRUNCATION:
2014
 
    drizzle->options.report_data_truncation= test(*(bool *) arg);
 
2014
    drizzle->options.report_data_truncation= test(*(const bool *) arg);
2015
2015
    break;
2016
2016
  case DRIZZLE_OPT_RECONNECT:
2017
 
    drizzle->reconnect= *(bool *) arg;
 
2017
    drizzle->reconnect= *(const bool *) arg;
2018
2018
    break;
2019
2019
  case DRIZZLE_OPT_SSL_VERIFY_SERVER_CERT:
2020
 
    if (*(bool*) arg)
 
2020
    if (*(const bool*) arg)
2021
2021
      drizzle->options.client_flag|= CLIENT_SSL_VERIFY_SERVER_CERT;
2022
2022
    else
2023
2023
      drizzle->options.client_flag&= ~CLIENT_SSL_VERIFY_SERVER_CERT;