~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_dup.c

  • Committer: Monty Taylor
  • Date: 2008-07-05 18:10:38 UTC
  • mto: This revision was merged to the branch mainline in revision 63.
  • Revision ID: monty@inaugust.com-20080705181038-0ih0nnamu5qrut0y
Fixed prototypes. Cleaned define a little bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
{
24
24
  File fd;
25
25
  const char *filename;
 
26
  DBUG_ENTER("my_dup");
 
27
  DBUG_PRINT("my",("file: %d  MyFlags: %d", file, MyFlags));
26
28
  fd = dup(file);
27
29
  filename= (((uint) file < my_file_limit) ?
28
30
             my_file_info[(int) file].name : "Unknown");
29
 
  return(my_register_filename(fd, filename, FILE_BY_DUP,
 
31
  DBUG_RETURN(my_register_filename(fd, filename, FILE_BY_DUP,
30
32
                                   EE_FILENOTFOUND, MyFlags));
31
 
}
 
33
} /* my_open */