~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to examples/proxy.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:
112
112
      break;
113
113
 
114
114
    case 'v':
115
 
      verbose++;
 
115
      switch(verbose)
 
116
      {
 
117
      case DRIZZLE_VERBOSE_NEVER:
 
118
        verbose= DRIZZLE_VERBOSE_FATAL;
 
119
        break;
 
120
      case DRIZZLE_VERBOSE_FATAL:
 
121
        verbose= DRIZZLE_VERBOSE_ERROR;
 
122
        break;
 
123
      case DRIZZLE_VERBOSE_ERROR:
 
124
        verbose= DRIZZLE_VERBOSE_INFO;
 
125
        break;
 
126
      case DRIZZLE_VERBOSE_INFO:
 
127
        verbose= DRIZZLE_VERBOSE_DEBUG;
 
128
        break;
 
129
      case DRIZZLE_VERBOSE_DEBUG:
 
130
        verbose= DRIZZLE_VERBOSE_CRAZY;
 
131
        break;
 
132
      case DRIZZLE_VERBOSE_CRAZY:
 
133
      case DRIZZLE_VERBOSE_MAX:
 
134
        break;
 
135
      }
116
136
      break;
117
137
 
118
138
    default:
215
235
{
216
236
  drizzle_return_t ret;
217
237
  drizzle_command_t command;
218
 
  const uint8_t *data;
 
238
  uint8_t *data;
219
239
  size_t offset;
220
240
  size_t size;
221
241
  size_t total;
268
288
 
269
289
    while (1)
270
290
    {
271
 
      data= drizzle_con_command_read(server, &command, &offset, &size, &total,
 
291
      data= (uint8_t *)drizzle_con_command_read(server, &command, &offset, &size, &total,
272
292
                                     &ret);
273
293
      if (ret == DRIZZLE_RETURN_LOST_CONNECTION)
274
294
        return;