From: Sage Weil Date: Mon, 20 Jun 2016 13:16:19 +0000 (-0400) Subject: test/librbd/exclusive_lock: use entity_addr_t::parse, not inet_pton X-Git-Tag: v11.1.0~515^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b7e1f76b0f5713a2b51f62d907db7e09a6219541;p=ceph.git test/librbd/exclusive_lock: use entity_addr_t::parse, not inet_pton Otherwise the entity_addr_t type doesn't get set. Signed-off-by: Sage Weil --- diff --git a/src/test/librbd/exclusive_lock/test_mock_AcquireRequest.cc b/src/test/librbd/exclusive_lock/test_mock_AcquireRequest.cc index 65d0559d7733..ee4548821cc9 100644 --- a/src/test/librbd/exclusive_lock/test_mock_AcquireRequest.cc +++ b/src/test/librbd/exclusive_lock/test_mock_AcquireRequest.cc @@ -187,9 +187,7 @@ public: } else { entity_name_t entity(locker_entity); entity_addr_t entity_addr; - entity_addr.set_family(AF_INET); - inet_pton(AF_INET, locker_address.c_str(), - &entity_addr.in4_addr().sin_addr); + entity_addr.parse(locker_address.c_str(), NULL); cls_lock_get_info_reply reply; if (r != -ENOENT) {