From 6b6fa3f111e617f901d3a853cf50db4d77ac8fe4 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Tue, 9 May 2023 18:42:47 +0300 Subject: [PATCH] Fix code format check --- .github/workflows/ci-build.yml | 2 +- src/platform_compat.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 946be3c..63dcbb5 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -41,7 +41,7 @@ jobs: uses: actions/checkout@v3 - name: clang-format - run: find src -type f -exec clang-format --dry-run --Werror {} \; + run: clang-format --dry-run --Werror src/**/*.cc src/**/*.h android: name: Android diff --git a/src/platform_compat.cc b/src/platform_compat.cc index 7a8f425..031cdae 100644 --- a/src/platform_compat.cc +++ b/src/platform_compat.cc @@ -315,7 +315,7 @@ void compat_resolve_path(char* path) #ifndef _WIN32 char* pch = path; - DIR *dir; + DIR* dir; if (pch[0] == '/') { dir = opendir("/"); pch++;