commit | f2dcb64922dbeaf1cc073ff8a02f1d84c2076926 | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <twasilczyk@google.com> | Thu Oct 10 12:13:29 2024 -0700 |
committer | Tomasz Wasilczyk <twasilczyk@google.com> | Fri Oct 11 08:08:28 2024 -0700 |
tree | 0177816f9182ae5601066ed564e5a6082c4a251a | |
parent | 426708b90d8a686b6e3349f17e4b0452d31800e6 [diff] [blame] |
libnetdevice: migrate API to std::string_view Bug: 372814636 Test: verified with b/372814636 test service Change-Id: I9a6226a914195e895193b8a4c2d4d833fcc5dade
diff --git a/automotive/can/1.0/default/libnetdevice/common.h b/automotive/can/1.0/default/libnetdevice/common.h index 661e3f8..e73c581 100644 --- a/automotive/can/1.0/default/libnetdevice/common.h +++ b/automotive/can/1.0/default/libnetdevice/common.h
@@ -32,6 +32,6 @@ * \param ifname Interface to check * \return Interface index, or 0 if the interface doesn't exist */ -unsigned int nametoindex(const std::string& ifname); +unsigned int nametoindex(std::string_view ifname); } // namespace android::netdevice