~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to examples/server.cc

  • Committer: patrick crews
  • Date: 2011-06-08 03:02:27 UTC
  • mto: This revision was merged to the branch mainline in revision 2329.
  • Revision ID: gleebix@gmail.com-20110608030227-updkyv2652zvfajc
Initial voodoo worked to give us a crashme mode.  Need docs still

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 *
35
35
 */
36
36
 
 
37
#include <config.h>
37
38
 
38
39
#include <errno.h>
39
40
#include <stdio.h>
96
97
      break;
97
98
 
98
99
    case 'v':
99
 
      verbose++;
 
100
      switch(verbose)
 
101
      {
 
102
      case DRIZZLE_VERBOSE_NEVER:
 
103
        verbose= DRIZZLE_VERBOSE_FATAL;
 
104
        break;
 
105
      case DRIZZLE_VERBOSE_FATAL:
 
106
        verbose= DRIZZLE_VERBOSE_ERROR;
 
107
        break;
 
108
      case DRIZZLE_VERBOSE_ERROR:
 
109
        verbose= DRIZZLE_VERBOSE_INFO;
 
110
        break;
 
111
      case DRIZZLE_VERBOSE_INFO:
 
112
        verbose= DRIZZLE_VERBOSE_DEBUG;
 
113
        break;
 
114
      case DRIZZLE_VERBOSE_DEBUG:
 
115
        verbose= DRIZZLE_VERBOSE_CRAZY;
 
116
        break;
 
117
      case DRIZZLE_VERBOSE_CRAZY:
 
118
      case DRIZZLE_VERBOSE_MAX:
 
119
        break;
 
120
      }
100
121
      break;
101
122
 
102
123
    default:
214
235
    if (data != NULL)
215
236
      free(data);
216
237
 
217
 
    data= drizzle_con_command_buffer(con, &command, &total, &ret);
 
238
    data= (uint8_t *)drizzle_con_command_buffer(con, &command, &total, &ret);
218
239
    if (ret == DRIZZLE_RETURN_LOST_CONNECTION ||
219
240
        (ret == DRIZZLE_RETURN_OK && command == DRIZZLE_COMMAND_QUIT))
220
241
    {