~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/default_modify.c

  • 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:
61
61
                         const char *section_name, int remove_option)
62
62
{
63
63
  FILE *cnf_file;
64
 
  MY_STAT file_stat;
 
64
  struct stat file_stat;
65
65
  char linebuff[BUFF_SIZE], *src_ptr, *dst_ptr, *file_buffer;
66
66
  size_t opt_len= 0, optval_len= 0, sect_len;
67
67
  uint nr_newlines= 0, buffer_size;
74
74
  if (!(cnf_file= my_fopen(file_location, O_RDWR | O_BINARY, MYF(0))))
75
75
    DBUG_RETURN(2);
76
76
 
77
 
  /* my_fstat doesn't use the flag parameter */
78
 
  if (my_fstat(fileno(cnf_file), &file_stat, MYF(0)))
 
77
  if (fstat(fileno(cnf_file), &file_stat))
79
78
    goto malloc_err;
80
79
 
81
80
  if (option && option_value)