~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_open.c

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
  }
78
78
  if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN)
79
79
  {
80
 
    my_free(my_file_info[fd].name, MYF(0));
 
80
    free(my_file_info[fd].name);
81
81
#if !defined(HAVE_PREAD)
82
82
    pthread_mutex_destroy(&my_file_info[fd].mutex);
83
83
#endif
107
107
*/
108
108
 
109
109
File my_register_filename(File fd, const char *FileName, enum file_type
110
 
                          type_of_file, uint error_message_number, myf MyFlags)
 
110
                          type_of_file, uint32_t error_message_number, myf MyFlags)
111
111
{
112
112
  if ((int) fd >= 0)
113
113
  {
159
159
{
160
160
  if (my_file_opened | my_stream_opened)
161
161
  {
162
 
    uint i;
 
162
    uint32_t i;
163
163
    for (i= 0 ; i < my_file_limit ; i++)
164
164
    {
165
165
      if (my_file_info[i].type != UNOPEN)