diff options
| author | Vijay Bellur <vbellur@redhat.com> | 2019-02-27 16:02:43 -0800 | 
|---|---|---|
| committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2019-04-12 13:08:28 +0000 | 
| commit | c261eb6c1fa41b6a0eadabbb3a2f64dc194ec254 (patch) | |
| tree | 93eb38d3e003c998a53844cc7a0081d1a9cf9b40 /xlators/lib | |
| parent | 0e1223491e964096384edfae5032ed0d50d028ad (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/lib')
| -rw-r--r-- | xlators/lib/src/libxlator.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/lib/src/libxlator.c b/xlators/lib/src/libxlator.c index 075229dae76..724ceef5f2a 100644 --- a/xlators/lib/src/libxlator.c +++ b/xlators/lib/src/libxlator.c @@ -267,17 +267,17 @@ cluster_markeruuid_cbk(call_frame_t *frame, void *cookie, xlator_t *this,                  goto unlock;              } else if (volmark->retval) {                  GF_FREE(local->volmark); -                local->volmark = memdup(volmark, sizeof(*volmark)); +                local->volmark = gf_memdup(volmark, sizeof(*volmark));                  local->retval = volmark->retval;              } else if ((volmark->sec > local->volmark->sec) ||                         ((volmark->sec == local->volmark->sec) &&                          (volmark->usec >= local->volmark->usec))) {                  GF_FREE(local->volmark); -                local->volmark = memdup(volmark, sizeof(*volmark)); +                local->volmark = gf_memdup(volmark, sizeof(*volmark));              }          } else { -            local->volmark = memdup(volmark, sizeof(*volmark)); +            local->volmark = gf_memdup(volmark, sizeof(*volmark));              VALIDATE_OR_GOTO(local->volmark, unlock);              gf_uuid_unparse(volmark->uuid, vol_uuid);              if (volmark->retval)  | 
