From 21ed800d050e1296cd495cb065bd379fe3e54324 Mon Sep 17 00:00:00 2001 From: James Addison Date: Tue, 26 Jan 2021 18:47:27 +0000 Subject: [PATCH] src: apply lint fix: use left-leaning pointers --- src/large_pages/node_large_page.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/large_pages/node_large_page.cc b/src/large_pages/node_large_page.cc index d809217a17d18f..a624356823a95b 100644 --- a/src/large_pages/node_large_page.cc +++ b/src/large_pages/node_large_page.cc @@ -257,8 +257,8 @@ struct text_region FindNodeTextRegion() { } #if defined(__linux__) -std::istream *GetTransparentHugePagesConfiguration() { - std::ifstream *ifs = new std::ifstream(); +std::istream* GetTransparentHugePagesConfiguration() { + std::ifstream* ifs = new std::ifstream(); ifs->open("/sys/kernel/mm/transparent_hugepage/enabled"); if (!*ifs) { @@ -269,7 +269,7 @@ std::istream *GetTransparentHugePagesConfiguration() { return ifs; } -bool IsTransparentHugePagesEnabledViaConfiguration(std::istream *configuration) { +bool IsTransparentHugePagesEnabledViaConfiguration(std::istream* configuration) { std::string token; while (*configuration >> token) { if (token == "[always]" || token == "[madvise]") return true; @@ -278,7 +278,7 @@ bool IsTransparentHugePagesEnabledViaConfiguration(std::istream *configuration) } bool IsTransparentHugePagesEnabled() { - std::istream *configuration = GetTransparentHugePagesConfiguration(); + std::istream* configuration = GetTransparentHugePagesConfiguration(); if (configuration == nullptr) { return false; }