~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/discover.cc

  • Committer: Stewart Smith
  • Date: 2008-06-30 05:33:25 UTC
  • mfrom: (12.2.8 drizzle)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: stewart@flamingspork.com-20080630053325-mwrv6bjaufcpvj8n
merge my work

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  File   file;
51
51
  size_t read_len;
52
52
  uchar *read_data;
53
 
  MY_STAT state;  
 
53
  struct stat state;  
54
54
  DBUG_ENTER("readfrm");
55
55
  DBUG_PRINT("enter",("name: '%s'",name));
56
56
  
65
65
  
66
66
  // Get length of file
67
67
  error= 2;
68
 
  if (my_fstat(file, &state, MYF(0)))
 
68
  if (fstat(file, &state))
69
69
    goto err;
70
70
  read_len= state.st_size;  
71
71