~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_open.cc

  • Committer: Monty Taylor
  • Date: 2008-12-07 23:42:51 UTC
  • mto: This revision was merged to the branch mainline in revision 670.
  • Revision ID: monty@inaugust.com-20081207234251-yxtbg06jpylwej29
Finally removed all of the my_malloc stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <my_dir.h>
19
19
#include <errno.h>
20
20
#include <stdlib.h>
 
21
#include <string.h>
21
22
 
22
23
/*
23
24
  Open a file
124
125
    else
125
126
    {
126
127
      pthread_mutex_lock(&THR_LOCK_open);
127
 
      if ((my_file_info[fd].name = (char*) my_strdup(FileName,MyFlags)))
 
128
      if ((my_file_info[fd].name = (char*) strdup(FileName)))
128
129
      {
129
130
        my_file_opened++;
130
131
        my_file_total_opened++;