~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzlebinlog.cc

  • Committer: Brian Aker
  • Date: 2008-07-22 18:31:32 UTC
  • Revision ID: brian@tangent.org-20080722183132-ne2ntl7g7mdf2eez
uint32 -> uin32_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
1000
1000
   (char**) &start_position, (char**) &start_position, 0, GET_ULL,
1001
1001
   REQUIRED_ARG, BIN_LOG_HEADER_SIZE, BIN_LOG_HEADER_SIZE,
1002
1002
   /* COM_BINLOG_DUMP accepts only 4 bytes for the position */
1003
 
   (uint64_t)(~(uint32)0), 0, 0, 0},
 
1003
   (uint64_t)(~(uint32_t)0), 0, 0, 0},
1004
1004
  {"protocol", OPT_MYSQL_PROTOCOL,
1005
1005
   "The protocol of connection (tcp,socket,pipe,memory).",
1006
1006
   0, 0, 0, GET_STR,  REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1039
1039
   (char**) &start_position, (char**) &start_position, 0, GET_ULL,
1040
1040
   REQUIRED_ARG, BIN_LOG_HEADER_SIZE, BIN_LOG_HEADER_SIZE,
1041
1041
   /* COM_BINLOG_DUMP accepts only 4 bytes for the position */
1042
 
   (uint64_t)(~(uint32)0), 0, 0, 0},
 
1042
   (uint64_t)(~(uint32_t)0), 0, 0, 0},
1043
1043
  {"stop-datetime", OPT_STOP_DATETIME,
1044
1044
   "Stop reading the binlog at first event having a datetime equal or "
1045
1045
   "posterior to the argument; the argument must be a date and time "
1459
1459
 
1460
1460
  /*
1461
1461
    COM_BINLOG_DUMP accepts only 4 bytes for the position, so we are forced to
1462
 
    cast to uint32.
 
1462
    cast to uint32_t.
1463
1463
  */
1464
 
  int4store(buf, (uint32)start_position);
 
1464
  int4store(buf, (uint32_t)start_position);
1465
1465
  int2store(buf + BIN_LOG_HEADER_SIZE, binlog_flags);
1466
1466
 
1467
1467
  size_t tlen = strlen(logname);