summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/default-args.c
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 /libglusterfs/src/default-args.c
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 'libglusterfs/src/default-args.c')
-rw-r--r--libglusterfs/src/default-args.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/default-args.c b/libglusterfs/src/default-args.c
index cfceabd1f46..9d4070449cd 100644
--- a/libglusterfs/src/default-args.c
+++ b/libglusterfs/src/default-args.c
@@ -1137,7 +1137,8 @@ args_rchecksum_cbk_store(default_args_cbk_t *args, int32_t op_ret,
args->op_errno = op_errno;
if (op_ret >= 0) {
args->weak_checksum = weak_checksum;
- args->strong_checksum = memdup(strong_checksum, SHA256_DIGEST_LENGTH);
+ args->strong_checksum = gf_memdup(strong_checksum,
+ SHA256_DIGEST_LENGTH);
}
if (xdata)
args->xdata = dict_ref(xdata);