[v1.03] Lets follow the function prototype rules

This commit is contained in:
Dr-Noob
2023-04-13 17:45:32 +02:00
parent 99fd108d0f
commit 5dd6ab60cb
3 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
CC ?= gcc CC ?= gcc
CFLAGS+=-Wall -Wextra -pedantic CFLAGS+=-Wall -Wextra -pedantic
SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith -Wstrict-prototypes
PREFIX ?= /usr PREFIX ?= /usr

View File

@@ -618,7 +618,7 @@ struct system_on_chip* guess_soc_from_cpuinfo(struct system_on_chip* soc) {
return soc; return soc;
} }
char* get_rk_efuse() { char* get_rk_efuse(void) {
int filelen; int filelen;
char* rk_soc = read_file(_PATH_RK_EFUSE0, &filelen); char* rk_soc = read_file(_PATH_RK_EFUSE0, &filelen);
if(rk_soc == NULL) { if(rk_soc == NULL) {

View File

@@ -86,7 +86,7 @@ char* get_uarch_from_cpuinfo(void) {
return parse_cpuinfo_field(CPUINFO_UARCH_STR); return parse_cpuinfo_field(CPUINFO_UARCH_STR);
} }
char* get_extensions_from_cpuinfo() { char* get_extensions_from_cpuinfo(void) {
return parse_cpuinfo_field(CPUINFO_EXTENSIONS_STR); return parse_cpuinfo_field(CPUINFO_EXTENSIONS_STR);
} }