~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.c

  • Committer: Andrey Hristov
  • Date: 2008-08-06 00:04:45 UTC
  • mto: (264.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: ahristov@mysql.com-20080806000445-84urmltikgwk9v5d
Constify the usage of CHARSET_INFO almost to the last place in the code.
99% of the parameters are const CHARSET_INFO * const cs.
Wherever possible stack variables are also double consted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
unsigned short terminal_width= 80;
198
198
 
199
199
static uint opt_protocol= DRIZZLE_PROTOCOL_TCP;
200
 
static CHARSET_INFO *charset_info= &my_charset_latin1;
 
200
static const CHARSET_INFO *charset_info= &my_charset_latin1;
201
201
 
202
202
const char *default_dbug_option="d:t:o,/tmp/drizzle.trace";
203
203
int drizzle_real_query_for_lazy(const char *buf, int length);
2662
2662
com_charset(DYNAMIC_STRING *buffer __attribute__((unused)), char *line)
2663
2663
{
2664
2664
  char buff[256], *param;
2665
 
  CHARSET_INFO * new_cs;
 
2665
  const CHARSET_INFO * new_cs;
2666
2666
  strmake(buff, line, sizeof(buff) - 1);
2667
2667
  param= get_arg(buff, 0);
2668
2668
  if (!param || !*param)