~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_dup.cc

Finished first pass at Protocol cleanup, still some things to remove but they are a bit more involved.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#include "mysys_priv.h"
17
17
#include "mysys_err.h"
18
 
#include <my_dir.h>
19
18
#include <errno.h>
20
19
        /* Open a file */
21
20
 
24
23
  File fd;
25
24
  const char *filename;
26
25
  fd = dup(file);
27
 
  filename= (((uint) file < my_file_limit) ?
 
26
  filename= (((uint32_t) file < my_file_limit) ?
28
27
             my_file_info[(int) file].name : "Unknown");
29
28
  return(my_register_filename(fd, filename, FILE_BY_DUP,
30
29
                                   EE_FILENOTFOUND, MyFlags));