master - clvmd: use dm_malloc
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=28479946249611f7f103c1caa33033a92ea0ce49 Commit: 28479946249611f7f103c1caa33033a92ea0ce49 Parent: c45cd6eb8d0272b6700d0b0c6f2baa82fe67f37d Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Mar 20 09:24:45 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Mar 21 22:29:24 2014 +0100
clvmd: use dm_malloc
Use libdm malloc wrapper functions.
--- daemons/clvmd/clvmd-openais.c | 4 +-- daemons/clvmd/clvmd.c | 72 +++++++++++++++++----------------------- 2 files changed, 32 insertions(+), 44 deletions(-)
daemons/clvmd/clvmd-openais.c +1 -3
@@ -197,9 +197,7 @@ static int add_internal_client(int fd, fd_callback_t callback)DEBUGLOG ("Add_internal_client, fd = %d\n" , fd); - client =calloc (1 ,sizeof (struct local_client )); -if (!client) - { +if (!(client =dm_zalloc (sizeof (*client)))) {DEBUGLOG ("malloc failed\n" );return -1 ; }
daemons/clvmd/clvmd.c +31 -41
209 lines not on this page · raw message