~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_malloc.c

  • Committer: Monty Taylor
  • Date: 2008-10-02 18:09:31 UTC
  • Revision ID: monty@inaugust.com-20081002180931-t9oosmm6uvps27k0
RemovedĀ getpassĀ references.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
  if (!size)
27
27
    size=1;                                     /* Safety */
28
 
  if ((point = malloc(size)) == NULL)
 
28
  if ((point = (char*)malloc(size)) == NULL)
29
29
  {
30
30
    my_errno=errno;
31
31
    if (my_flags & MY_FAE)
41
41
} /* my_malloc */
42
42
 
43
43
 
 
44
        /* Free memory allocated with my_malloc */
 
45
        /*ARGSUSED*/
 
46
 
 
47
void my_no_flags_free(void* ptr)
 
48
{
 
49
  if (ptr)
 
50
    free(ptr);
 
51
  return;
 
52
} /* my_free */
 
53
 
 
54
 
44
55
        /* malloc and copy */
45
56
 
46
57
void* my_memdup(const void *from, size_t length, myf my_flags)