~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/serialize/replication_event_reader.cc

  • Committer: Brian Aker
  • Date: 2009-02-26 05:21:02 UTC
  • mfrom: (896.1.5 fix-osxs)
  • Revision ID: brian@intel-mini-2.local-20090226052102-8xtbjt8kph6mi0qx
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
    buffer= temp_buffer;
173
173
 
174
174
    /* Read the record */
175
 
    if (read(file, buffer, (off_t)length) != (off_t)length)
 
175
    if (read(file, buffer, (size_t)length) != (ssize_t)length)
176
176
    {
177
177
      cerr << "Could not read entire record." << endl;
178
178
      exit(1);
179
179
    }
180
 
    list.ParseFromArray(buffer, length);
 
180
    list.ParseFromArray(buffer, (int)length);
181
181
 
182
182
    /* Print the record */
183
183
    printRecord(&list);