Update for libbase.
StringPrintf and the string based file I/O are being moved to libbase.
Change-Id: I765d9e53f65a76d318d9d0d9503403fc092254d5
diff --git a/server/RouteController.cpp b/server/RouteController.cpp
index b47acd4..736aa74 100644
--- a/server/RouteController.cpp
+++ b/server/RouteController.cpp
@@ -30,12 +30,14 @@
#include "Fwmark.h"
#include "UidRanges.h"
+#include "base/file.h"
#define LOG_TAG "Netd"
#include "log/log.h"
#include "logwrap/logwrap.h"
-#include "utils/file.h"
#include "resolv_netid.h"
+using android::base::WriteStringToFile;
+
namespace {
// BEGIN CONSTANTS --------------------------------------------------------------------------------
@@ -164,7 +166,7 @@
addTableName(entry.second, entry.first, &contents);
}
- if (!android::WriteStringToFile(contents, RT_TABLES_PATH, RT_TABLES_MODE, AID_SYSTEM, AID_WIFI)) {
+ if (!WriteStringToFile(contents, RT_TABLES_PATH, RT_TABLES_MODE, AID_SYSTEM, AID_WIFI)) {
ALOGE("failed to write to %s (%s)", RT_TABLES_PATH, strerror(errno));
return;
}