mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v1.03] Lets follow the function prototype rules
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user