fix to match clang-format

This commit is contained in:
Henrik Holst 2023-05-03 21:22:11 +02:00 committed by afayaz-feral
parent 303a5a9734
commit 2e26331d97

View File

@ -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) {