netd: Enable clang-tidy and fix all warnings
Bug: 65246407
Test: m netd && system/netd/tests/runtests.sh
Change-Id: I1d22b2bc317fe7218ccde78859ed0623d6a1f8df
diff --git a/server/InterfaceController.h b/server/InterfaceController.h
index f97547f..58505a6 100644
--- a/server/InterfaceController.h
+++ b/server/InterfaceController.h
@@ -66,9 +66,10 @@
std::function<android::netdutils::Status(const std::string& key, const std::string& val)>;
// Helper function exported from this compilation unit for testing.
- static android::netdutils::Status enableStablePrivacyAddresses(const std::string& iface,
- GetPropertyFn getProperty,
- SetPropertyFn setProperty);
+ static android::netdutils::Status enableStablePrivacyAddresses(
+ const std::string& iface,
+ const GetPropertyFn& getProperty,
+ const SetPropertyFn& setProperty);
static void setAcceptRA(const char* value);
static void setAcceptRARouteTable(int tableOrOffset);