Mercurial > dropbear
comparison dbutil.c @ 657:16af1decaf4c
- Merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 21 Feb 2012 23:00:30 +0800 |
parents | 76e780c74a5e df11cb6a3665 |
children | 0ad95abf8d3c |
comparison
equal
deleted
inserted
replaced
656:67fbba2c2a85 | 657:16af1decaf4c |
---|---|
798 dropbear_exit("m_strdup failed"); | 798 dropbear_exit("m_strdup failed"); |
799 } | 799 } |
800 return ret; | 800 return ret; |
801 } | 801 } |
802 | 802 |
803 void __m_free(void* ptr) { | |
804 if (ptr != NULL) { | |
805 free(ptr); | |
806 } | |
807 } | |
808 | |
809 void * m_realloc(void* ptr, size_t size) { | 803 void * m_realloc(void* ptr, size_t size) { |
810 | 804 |
811 void *ret; | 805 void *ret; |
812 | 806 |
813 if (size == 0) { | 807 if (size == 0) { |