~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_lib.cc

  • Committer: Monty Taylor
  • Date: 2008-11-07 00:35:38 UTC
  • mto: (575.1.8 devel)
  • mto: This revision was merged to the branch mainline in revision 579.
  • Revision ID: monty@inaugust.com-20081107003538-x48mj66gkbrdjcuc
Made mysys and mystrings c++. Fixed the resulting bugs the compiler found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
 
97
97
  dirp = opendir(directory_file_name(tmp_path,(char *) path));
98
98
  if (dirp == NULL || 
99
 
      ! (buffer= my_malloc(ALIGN_SIZE(sizeof(MY_DIR)) + 
100
 
                           ALIGN_SIZE(sizeof(DYNAMIC_ARRAY)) +
101
 
                           sizeof(MEM_ROOT), MyFlags)))
 
99
      ! (buffer= (char *) my_malloc(ALIGN_SIZE(sizeof(MY_DIR)) + 
 
100
                                    ALIGN_SIZE(sizeof(DYNAMIC_ARRAY)) +
 
101
                                    sizeof(MEM_ROOT), MyFlags)))
102
102
    goto error;
103
103
 
104
104
  dir_entries_storage= (DYNAMIC_ARRAY*)(buffer + ALIGN_SIZE(sizeof(MY_DIR)));