Skip to content

Commit 6121465

Browse files
committed
libnetd_server: avoid vector<const T>
A container of const T uses std::allocator<const T>, which was an undocumented libc++ extension that has been removed. See llvm/llvm-project#96319. Bug: 349681543 Test: m libnetd_server Change-Id: I1e97b0685fd94dc11f1c58c7fa05e1dd140d8172
1 parent 564f96b commit 6121465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/TetherController.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ int TetherController::startTethering(bool usingLegacyDnsProxy, int num_addrs, ch
232232
char markStr[UINT32_HEX_STRLEN];
233233
snprintf(markStr, sizeof(markStr), "0x%x", fwmark.intValue);
234234

235-
std::vector<const std::string> argVector = {
235+
std::vector<std::string> argVector = {
236236
"/system/bin/dnsmasq",
237237
"--keep-in-foreground",
238238
"--no-resolv",

0 commit comments

Comments
 (0)