~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to examples/sqlite_server.c

  • Committer: Monty Taylor
  • Date: 2010-12-10 17:15:20 UTC
  • mto: (2023.3.15 innodb-cxx)
  • mto: This revision was merged to the branch mainline in revision 2014.
  • Revision ID: mordred@inaugust.com-20101210171520-jjzk0ajz1w6dgexo
Cleaned up for additional gcc 4.5 warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
      break;
121
121
 
122
122
    case 'v':
123
 
      server->verbose++;
 
123
      switch(server->verbose)
 
124
      {
 
125
      case DRIZZLE_VERBOSE_NEVER:
 
126
        server->verbose= DRIZZLE_VERBOSE_FATAL;
 
127
        break;
 
128
      case DRIZZLE_VERBOSE_FATAL:
 
129
        server->verbose= DRIZZLE_VERBOSE_ERROR;
 
130
        break;
 
131
      case DRIZZLE_VERBOSE_ERROR:
 
132
        server->verbose= DRIZZLE_VERBOSE_INFO;
 
133
        break;
 
134
      case DRIZZLE_VERBOSE_INFO:
 
135
        server->verbose= DRIZZLE_VERBOSE_DEBUG;
 
136
        break;
 
137
      case DRIZZLE_VERBOSE_DEBUG:
 
138
        server->verbose= DRIZZLE_VERBOSE_CRAZY;
 
139
        break;
 
140
      case DRIZZLE_VERBOSE_CRAZY:
 
141
      case DRIZZLE_VERBOSE_MAX:
 
142
        break;
 
143
      }
124
144
      break;
125
145
 
126
146
    default:
240
260
    if (data != NULL)
241
261
      free(data);
242
262
 
243
 
    data= drizzle_con_command_buffer(&(server->con), &command, &total, &ret);
 
263
    data= (uint8_t *)drizzle_con_command_buffer(&(server->con), &command, &total, &ret);
244
264
    if (ret == DRIZZLE_RETURN_LOST_CONNECTION ||
245
265
        (ret == DRIZZLE_RETURN_OK && command == DRIZZLE_COMMAND_QUIT))
246
266
    {