diff options
author | Kefu Chai <kchai@redhat.com> | 2021-03-27 10:03:02 +0800 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-07-25 19:23:07 +0800 |
commit | 58df0279a59606fb0303b0a21d26a5f8874d8d46 (patch) | |
tree | 3eeb73da5950c32c4a47972aba47c2e604359a3d | |
parent | 8a61566dd8464c54c0b587febe3b334abba7a434 (diff) | |
download | ceph-58df0279a59606fb0303b0a21d26a5f8874d8d46.tar.gz |
common/pick_address: pass string by reference
to silence warnings from clang-tidy.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 6d0ed81f796209f27b96811f9140b7fff16a7940)
-rw-r--r-- | src/common/pick_address.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/pick_address.cc b/src/common/pick_address.cc index a369980ffdd..9117ebe8ca1 100644 --- a/src/common/pick_address.cc +++ b/src/common/pick_address.cc @@ -160,8 +160,8 @@ struct Observer : public md_config_obs_t { static void fill_in_one_address(CephContext *cct, const struct ifaddrs *ifa, - const string networks, - const string interfaces, + const string &networks, + const string &interfaces, const char *conf_var, int numa_node = -1) { @@ -250,8 +250,8 @@ static int fill_in_one_address( CephContext *cct, const struct ifaddrs *ifa, unsigned ipv, - const string networks, - const string interfaces, + const string &networks, + const string &interfaces, entity_addrvec_t *addrs, int numa_node = -1) { |