summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2019-02-27 16:02:43 -0800
committerPranith Kumar Karampuri <pkarampu@redhat.com>2019-04-12 13:08:28 +0000
commitc261eb6c1fa41b6a0eadabbb3a2f64dc194ec254 (patch)
tree93eb38d3e003c998a53844cc7a0081d1a9cf9b40 /xlators/cluster
parent0e1223491e964096384edfae5032ed0d50d028ad (diff)
Replace memdup() with gf_memdup()
memdup() and gf_memdup() have the same implementation. Removed one API as the presence of both can be confusing. Change-Id: I562130c668457e13e4288e592792872d2e49887e updates: bz#1193929 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-self-heald.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heald.c b/xlators/cluster/afr/src/afr-self-heald.c
index fe8ca026781..29714f5a90b 100644
--- a/xlators/cluster/afr/src/afr-self-heald.c
+++ b/xlators/cluster/afr/src/afr-self-heald.c
@@ -387,7 +387,7 @@ afr_shd_sweep_done(struct subvol_healer *healer)
shd = &(((afr_private_t *)healer->this->private)->shd);
time(&event->end_time);
- history = memdup(event, sizeof(*event));
+ history = gf_memdup(event, sizeof(*event));
event->start_time = 0;
if (!history)