From 235d57c591aab49ea34d63a07c39095f5b6aea7d Mon Sep 17 00:00:00 2001 From: Arvid Gerstmann Date: Fri, 4 May 2018 09:30:32 +0200 Subject: [PATCH] Fix failing tests on Linux & Android --- src/hwcaps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hwcaps.c b/src/hwcaps.c index c1ac6e0..a4a30db 100644 --- a/src/hwcaps.c +++ b/src/hwcaps.c @@ -110,13 +110,13 @@ static uint32_t GetElfHwcapFromProcSelfAuxv(uint32_t hwcap_type) { } entry; uint32_t result = 0; const char filepath[] = "/proc/self/auxv"; - const int fd = OpenFile(filepath); + const int fd = CpuFeatures_OpenFile(filepath); if (fd < 0) { D("Could not open %s\n", filepath); return 0; } for (;;) { - const int ret = ReadFile(fd, (char*)&entry, sizeof entry); + const int ret = CpuFeatures_ReadFile(fd, (char*)&entry, sizeof entry); if (ret < 0) { D("Error while reading %s\n", filepath); break; @@ -130,7 +130,7 @@ static uint32_t GetElfHwcapFromProcSelfAuxv(uint32_t hwcap_type) { break; } } - CloseFile(fd); + CpuFeatures_CloseFile(fd); return result; }