~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_rename.cc

  • Committer: Brian Aker
  • Date: 2009-12-26 18:33:33 UTC
  • mfrom: (1252.1.1 bugs)
  • Revision ID: brian@gaz-20091226183333-pel3p35bk7r82kl1
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "heap_priv.h"
21
21
#include <string.h>
 
22
#include <cstdlib>
22
23
 
23
24
int heap_rename(const char *old_name, const char *new_name)
24
25
{
31
32
    if (!(name_buff=(char*) strdup(new_name)))
32
33
    {
33
34
      pthread_mutex_unlock(&THR_LOCK_heap);
34
 
      return(my_errno);
 
35
      return(errno);
35
36
    }
36
37
    free(info->name);
37
38
    info->name=name_buff;