~brianaker/libdrizzle/windows-support-via-mingw

« back to all changes in this revision

Viewing changes to libdrizzle/binlog.cc

  • Committer: Continuous Integration
  • Date: 2013-01-05 11:52:21 UTC
  • mfrom: (79.1.5 5.1-api-fixes)
  • Revision ID: ci@drizzle.org-20130105115221-qxd0g29jljekx7q9
Merge lp:~linuxjedi/libdrizzle/5.1-api-fixes Build: jenkins-Libdrizzle-33

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
                                            uint32_t start_position,
46
46
                                            drizzle_return_t *ret_ptr)
47
47
48
 
  uint8_t data[128];
49
 
  uint8_t *ptr;
 
48
  unsigned char data[128];
 
49
  unsigned char *ptr;
50
50
  uint8_t len= 0, fn_len= 0;
51
51
  drizzle_result_st *result;
52
52
 
179
179
  return result->binlog_event->extra_flags;
180
180
}
181
181
 
182
 
const uint8_t *drizzle_binlog_event_data(drizzle_result_st *result)
 
182
const unsigned char *drizzle_binlog_event_data(drizzle_result_st *result)
183
183
{
184
184
  if ((result == NULL) || (result->binlog_event == NULL))
185
185
  {
189
189
  return result->binlog_event->data;
190
190
}
191
191
 
192
 
const uint8_t *drizzle_binlog_event_raw_data(drizzle_result_st *result)
 
192
const unsigned char *drizzle_binlog_event_raw_data(drizzle_result_st *result)
193
193
{
194
194
  if ((result == NULL) || (result->binlog_event == NULL))
195
195
  {
306
306
      con->buffer_ptr+= 27;
307
307
      con->buffer_size-= 27;
308
308
      con->packet_size-= 27;
309
 
      binlog_event->data= (uint8_t*)realloc(binlog_event->data, binlog_event->length);
 
309
      binlog_event->data= (unsigned char*)realloc(binlog_event->data, binlog_event->length);
310
310
      /* 5.6.1 or higher is automatic checksums on */
311
311
      if (binlog_event->type == DRIZZLE_EVENT_TYPE_FORMAT_DESCRIPTION)
312
312
      {