~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to examples/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:
96
96
      break;
97
97
 
98
98
    case 'v':
99
 
      verbose++;
 
99
      switch(verbose)
 
100
      {
 
101
      case DRIZZLE_VERBOSE_NEVER:
 
102
        verbose= DRIZZLE_VERBOSE_FATAL;
 
103
        break;
 
104
      case DRIZZLE_VERBOSE_FATAL:
 
105
        verbose= DRIZZLE_VERBOSE_ERROR;
 
106
        break;
 
107
      case DRIZZLE_VERBOSE_ERROR:
 
108
        verbose= DRIZZLE_VERBOSE_INFO;
 
109
        break;
 
110
      case DRIZZLE_VERBOSE_INFO:
 
111
        verbose= DRIZZLE_VERBOSE_DEBUG;
 
112
        break;
 
113
      case DRIZZLE_VERBOSE_DEBUG:
 
114
        verbose= DRIZZLE_VERBOSE_CRAZY;
 
115
        break;
 
116
      case DRIZZLE_VERBOSE_CRAZY:
 
117
      case DRIZZLE_VERBOSE_MAX:
 
118
        break;
 
119
      }
100
120
      break;
101
121
 
102
122
    default:
214
234
    if (data != NULL)
215
235
      free(data);
216
236
 
217
 
    data= drizzle_con_command_buffer(con, &command, &total, &ret);
 
237
    data= (uint8_t *)drizzle_con_command_buffer(con, &command, &total, &ret);
218
238
    if (ret == DRIZZLE_RETURN_LOST_CONNECTION ||
219
239
        (ret == DRIZZLE_RETURN_OK && command == DRIZZLE_COMMAND_QUIT))
220
240
    {