~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_fopen.cc

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
      on some OS (SUNOS). Actually the filename save isn't that important
60
60
      so we can ignore if this doesn't work.
61
61
    */
62
 
    if ((uint) fileno(fd) >= my_file_limit)
 
62
    if ((uint32_t) fileno(fd) >= my_file_limit)
63
63
    {
64
64
      thread_safe_increment(my_stream_opened,&THR_LOCK_open);
65
65
      return(fd);                               /* safeguard */
105
105
  }
106
106
  else
107
107
    my_stream_opened--;
108
 
  if ((uint) file < my_file_limit && my_file_info[file].type != UNOPEN)
 
108
  if ((uint32_t) file < my_file_limit && my_file_info[file].type != UNOPEN)
109
109
  {
110
110
    my_file_info[file].type = UNOPEN;
111
111
    free(my_file_info[file].name);