~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1403
1403
 
1404
1404
static int compare_files(const char* filename1, const char* filename2)
1405
1405
{
1406
 
  int fd;
1407
 
  int error;
1408
 
 
1409
 
  if ((fd= internal::my_open(filename1, O_RDONLY, MYF(0))) < 0)
 
1406
  int fd= internal::my_open(filename1, O_RDONLY, MYF(0));
 
1407
  if (fd < 0)
1410
1408
    die("Failed to open first file: '%s'", filename1);
1411
 
 
1412
 
  error= compare_files2(fd, filename2);
1413
 
 
 
1409
  int error= compare_files2(fd, filename2);
1414
1410
  internal::my_close(fd, MYF(0));
1415
 
 
1416
1411
  return error;
1417
1412
}
1418
1413