From 2e26331d9778946ab33e57f3198b1878898fca02 Mon Sep 17 00:00:00 2001 From: Henrik Holst Date: Wed, 3 May 2023 21:22:11 +0200 Subject: [PATCH] fix to match clang-format --- daemon/gamemode-cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/gamemode-cpu.c b/daemon/gamemode-cpu.c index 7fd02f1..49da3f1 100644 --- a/daemon/gamemode-cpu.c +++ b/daemon/gamemode-cpu.c @@ -45,7 +45,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "build-config.h" -static int read_small_file (char *path, char **buf, size_t *buflen) +static int read_small_file(char *path, char **buf, size_t *buflen) { FILE *f = fopen(path, "r"); @@ -72,7 +72,7 @@ static int read_small_file (char *path, char **buf, size_t *buflen) return 1; } -static int walk_sysfs (char *cpulist, char **buf, size_t *buflen, GameModeCPUInfo *info) +static int walk_sysfs(char *cpulist, char **buf, size_t *buflen, GameModeCPUInfo *info) { char path[PATH_MAX]; unsigned long long max_cache = 0, max_freq = 0; @@ -151,7 +151,7 @@ static int walk_sysfs (char *cpulist, char **buf, size_t *buflen, GameModeCPUInf return 1; } -static int walk_string (char *cpulist, char *config_cpulist, GameModeCPUInfo *info) +static int walk_string(char *cpulist, char *config_cpulist, GameModeCPUInfo *info) { long from, to; @@ -289,7 +289,7 @@ error_exit: return -1; } -static int log_state (char *cpulist, int *pos, const long first, const long last) +static int log_state(char *cpulist, int *pos, const long first, const long last) { int ret; if (*pos != 0) {